PHP Manual
Function Reference
Date and Time Related Extensions
Date/Time
DateTimeImmutable
DateTimeImmutable::add
DateTimeImmutable::__construct
DateTimeImmutable::createFromFormat
DateTimeImmutable::getLastErrors
DateTimeImmutable::modify
DateTimeImmutable::__set_state
DateTimeImmutable::setDate
DateTimeImmutable::setISODate
DateTimeImmutable::setTime
DateTimeImmutable::setTimestamp
DateTimeImmutable::setTimezone
DateTimeImmutable::sub
DateTimeImmutable::setISODate
DateTimeImmutable::setTimestamp
DateTimeImmutable
PHP Manual
DateTimeImmutable::setTime
Sets the time
Description
public
DateTimeImmutable
DateTimeImmutable::setTime
(
int
$hour
,
int
$minute
[,
int
$second
= 0
] )
Like
DateTime::setTime
but works with
DateTimeImmutable
.