GoLang DateTimeImmutable::setTimezone

request it (302)
GoLang replacement for PHP's DateTimeImmutable::setTimezone [edit | history]



Do you know a GoLang replacement for PHP's DateTimeImmutable::setTimezone? Write it!

PHP DateTimeImmutable::setTimezone

PHP original manual for DateTimeImmutable::setTimezone [ show | php.net ]

DateTimeImmutable::setTimezone

(PHP 5 >= 5.5.0, PHP 7)

DateTimeImmutable::setTimezoneSets the time zone

Description

public DateTimeImmutable DateTimeImmutable::setTimezone ( DateTimeZone $timezone )

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