DateRange
in package
FinalYes
The days a date value can mean, as Julian Day Numbers, for comparing dates: "1907" is 1 JAN to 31 DEC 1907, "BEF 1907" has no first day, "BET 1900 AND 1910" spans both years.
Gregorian and Julian dates of every version are read (7.0 "JULIAN 1650", 5.x "@#DJULIAN@ 1650", "1648/49", "44 BCE", "44 B.C."). Approximate dates (ABT, CAL, EST), date phrases, other calendars and anything unreadable have no range: plausibility is only reported when it is certain.
Table of Contents
Methods
- of() : array{int, int}|null
Methods
of()
public
static of(string $value) : array{int, int}|null
Parameters
- $value : string
Return values
array{int, int}|null —first and last day; PHP_INT_MIN / PHP_INT_MAX for an open end