Sets the time zone

DateTimeImmutable::setTimestamp
DateTimeImmutable::sub
DateTimeImmutable
PHP Manual

# DateTimeImmutable::setTimezone

(PHP 5 >= 5.5.0)

DateTimeImmutable::setTimezone — Sets the time zone

### Description

public DateTimeImmutable DateTimeImmutable::setTimezone ( DateTimeZone `$timezone` )

Like DateTime::setTimezone() but works with DateTimeImmutable.

DateTimeImmutable::setTimestamp
DateTimeImmutable::sub
DateTimeImmutable
PHP Manual