(PHP 5 >= 5.2.0, PHP 7, PHP 8)
This class behaves the same as DateTimeImmutable except objects are modified itself when modification methods such as DateTime::modify() are called.
$format
, string $datetime
, ?DateTimeZone $timezone
= null
): DateTime|false
Version | Description |
---|---|
7.2.0 | The class constants of DateTime are now defined on DateTimeInterface. |