DateTime constructor.
If value is an integer is used as a timestamp, if is a string is evaluated as an argument for DateTimeImmutable and if it is DateTimeImmutable is used as is.
Optional
value: string | number | DateTime<boolean>Optional
defaultTimeZone: stringStatic
createCreate a DateTime instance
If value is an integer is used as a timestamp, if is a string is evaluated as an argument for DateTimeImmutable and if it is DateTimeImmutable is used as is.
Optional
value: string | number | DateTime<boolean>Optional
defaultTimeZone: stringStatic
now
Defines a date and time