A date range
Xyster_Date_Range
__construct
( $start, $end)
-
Zend_Date
$start: The starting date
-
Zend_Date
$end: The ending date
Gets the ending date
Zend_Date
getEnd
()
Gets the beginning date
Zend_Date
getStart
()
Gets the timespan between these dates
The part and locale are the same as used in many Zend_Date methods.
mixed
getTimespan
([string $part = null], [mixed $locale = null])
-
string
$part: OPTIONAL Part of the date to sub, if null the timestamp is subtracted
-
mixed
$locale: OPTIONAL Locale as a Zend_Locale or a string for parsing input
Tests to see if the supplied date is within this range
The part and locale are the same as used in many Zend_Date methods.
boolean
isWithin
(mixed $date, [string $part = null], [mixed $locale = null])
-
mixed
$date: Date or datepart to compare with the date object
-
string
$part: OPTIONAL Part of the date to compare, if null the timestamp is compared
-
mixed
$locale: OPTIONAL Locale as a Zend_Locale or a string for parsing input
Returns the string representation of this object
The dates are separated by an En Dash (U+2013)
string
__toString
()