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::setTimestamp
DateTimeImmutable::sub
DateTimeImmutable
PHP Manual
DateTimeImmutable::setTimezone
Sets the time zone
Description
public
DateTimeImmutable
DateTimeImmutable::setTimezone
(
DateTimeZone
$timezone
)
Like
DateTime::setTimezone
but works with
DateTimeImmutable
.