(PHP 5 >= 5.5.0, PHP 7, PHP 8)
Representation of date and time.
This class behaves the same as DateTime except new objects are returned when modification methods such as DateTime::modify() are called.
$format, string $datetime, ?DateTimeZone $timezone = null): DateTimeImmutable|false