DateTimeImmutable::__construct

DateTimeImmutable::__construct - Returns new DateTimeImmutable object
Manual

date_create_immutable( [string$datetime = "now"], [DateTimeZone|null$timezone = null] ): DateTimeImmutable|false

Like DateTime::__construct but works with DateTimeImmutable.

Function DateTimeImmutable::__construct:

  • Manual

Date and Time Functions

Most used PHP functions