(PHP 5 >= 5.5.0, PHP 7)
This class behaves the same as DateTime except it never modifies itself but returns a new object instead.
$format
, string $time
[, DateTimeZone $timezone
] ) : DateTimeImmutable$hour
, int $minute
[, int $second
= 0
[, int $microseconds
= 0
]] ) : DateTimeImmutable