Class for date range
package |
DateRange |
---|---|
subpackage |
Utility |
__construct(\DateTime|string|integer $start, \DateTime|string|integer $end = null)
throws | |
---|---|
\DateTime|string|integer
Start date
\DateTime|string|integer
End date
end() : \DateTime
\DateTime
endFormat(string $format) : string
string
Date format
string
isContains(\DateTime $Date, boolean $inclusive = true)
\DateTime
Checked date
boolean
True means include range edges
period(string $time) : \ArrayIterator
string
\ArrayIterator
start() : \DateTime
\DateTime
startFormat(string $format) : string
string
Date format
string
_startDate : \DateTime
var |
---|
\DateTime
_endDate : \DateTime
var |
---|
\DateTime