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.
Optionalvalue: string | number | DateTime<boolean>OptionaldefaultTimeZone: stringStaticcreateCreate 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.
Optionalvalue: string | number | DateTime<boolean>OptionaldefaultTimeZone: stringStaticnow
Defines a date and time