EmptyDateTime
The purpose of this class is to represent a DateTime with support of an empty date 1000-01-01 00:00:00
| category |
System |
|---|---|
| package |
Shared |
| extends |
DateTime |
__construct(string $time = '1000-01-01 00:00:00', \DateTimeZone $timeZone = null)
stringA date/time string. NULL will be represented as 1000-01-01 00:00:00 instead of the current time like in DateTime.
\DateTimeZoneA DateTimeZone object representing the timezone of $time. If $timezone is omitted, the current timezone will be used.
format(string $format) : string
string
string
isNullDate : boolean
| var |
|---|
boolean