- класс
TimeZone
(php\time\TimeZone
) - пакет
std
- исходники
php/time/TimeZone.php
Описание
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(): TimeZone
Returns UTC Time zone
TimeZone::of(string $ID): TimeZone
TimeZone::setDefault(php\time\TimeZone $zone, bool $globally): void
Set default time zone for Time objects, by default - the default timezone is UTC
TimeZone::getDefault(bool $globally): TimeZone
Get default timezone
TimeZone::getAvailableIDs(int|null $rawOffset): string[]
Returns all available ids of timezones
__construct(int $rawOffset, string $ID, array $options): TimeZone
getId(): string
Get id of the timezone
getRawOffset(): string
Get raw offset of the timezone
__clone(): void
Class is immutable, the disallowed clone method