(PHP 5 >= 5.5.0, PHP 7, PHP 8)
DateTimeImmutable::setTime — 時刻を設定する
$hour
$minute
$second
$microsecond
DateTime::setTime() と似ていますが、 DateTimeImmutable で動作します。