- class
TimeZone(php\time\TimeZone) - package
std - source
php/time/TimeZone.php
Description
Class TimeZone, Immutable
TimeZone ::UTC()- Returns UTC Time zoneTimeZone ::of()TimeZone ::setDefault()- Set default time zone for Time objects, by default - the default timezone is UTCTimeZone ::getDefault()- Get default timezoneTimeZone ::getAvailableIDs()- Returns all available ids of timezones
->__construct()->getId()- Get id of the timezone->getRawOffset()- Get raw offset of the timezone->__clone()- Class is immutable, the disallowed clone method
TimeZone::UTC(): TimeZoneReturns UTC Time zone
TimeZone::of(string $ID): TimeZoneTimeZone::setDefault(php\time\TimeZone $zone, bool $globally): voidSet default time zone for Time objects, by default - the default timezone is UTC
TimeZone::getDefault(bool $globally): TimeZoneGet default timezone
TimeZone::getAvailableIDs(int|null $rawOffset): string[]Returns all available ids of timezones
__construct(int $rawOffset, string $ID, array $options): TimeZonegetId(): stringGet id of the timezone
getRawOffset(): stringGet raw offset of the timezone
__clone(): voidClass is immutable, the disallowed clone method