An extension of the \DateTime object.
Methods
__construct()
__construct()
inherited_from |
DateTime::__construct() |
__set_state()
__set_state()
inherited_from |
DateTime::__set_state() |
__wakeup()
__wakeup()
inherited_from |
DateTime::__wakeup() |
add()
add()
inherited_from |
DateTime::add() |
The DateTime::ISO8601 constant used by php's native DateTime object does
not allow for fractions of a second.
createFromISO8601(string $time, \DateTimeZone $timezone) : mixed
This function better handles ISO8601
formatted date strings.
Parameters
$time
string
Returns
mixed
diff()
diff()
inherited_from |
DateTime::diff() |
getLastErrors()
getLastErrors()
inherited_from |
DateTime::getLastErrors() |
getOffset()
getOffset()
inherited_from |
DateTime::getOffset() |
getTimestamp()
getTimestamp()
inherited_from |
DateTime::getTimestamp() |
getTimezone()
getTimezone()
inherited_from |
DateTime::getTimezone() |
modify()
modify()
inherited_from |
DateTime::modify() |
setDate()
setDate()
inherited_from |
DateTime::setDate() |
setISODate()
setISODate()
inherited_from |
DateTime::setISODate() |
setTime()
setTime()
inherited_from |
DateTime::setTime() |
setTimestamp()
setTimestamp()
inherited_from |
DateTime::setTimestamp() |
setTimezone()
setTimezone()
inherited_from |
DateTime::setTimezone() |
sub()
sub()
inherited_from |
DateTime::sub() |