DateTimeImmutable
PHP Manual

DateTimeImmutable::setTime

(PHP 5 >= 5.5.0)

DateTimeImmutable::setTimeEstablece la hora

DescripciĆ³n

public DateTimeImmutable DateTimeImmutable::setTime ( int $hour , int $minute [, int $second = 0 ] )

Igual que DateTime::setTime() excepto que trabaja con DateTimeImmutable.


DateTimeImmutable
PHP Manual