Skip to content

Latest commit

 

History

History
118 lines (82 loc) · 2.14 KB

TimeZone.ru.md

File metadata and controls

118 lines (82 loc) · 2.14 KB

TimeZone

  • класс TimeZone (php\time\TimeZone)
  • пакет std
  • исходники php/time/TimeZone.php

Описание

Class TimeZone, Immutable


Статичные Методы

  • TimeZone ::UTC() - Returns UTC Time zone
  • TimeZone ::of()
  • TimeZone ::setDefault() - Set default time zone for Time objects, by default - the default timezone is UTC
  • TimeZone ::getDefault() - Get default timezone
  • TimeZone ::getAvailableIDs() - Returns all available ids of timezones

Методы


Статичные Методы

UTC()

TimeZone::UTC(): TimeZone

Returns UTC Time zone


of()

TimeZone::of(string $ID): TimeZone

setDefault()

TimeZone::setDefault(php\time\TimeZone $zone, bool $globally): void

Set default time zone for Time objects, by default - the default timezone is UTC


getDefault()

TimeZone::getDefault(bool $globally): TimeZone

Get default timezone


getAvailableIDs()

TimeZone::getAvailableIDs(int|null $rawOffset): string[]

Returns all available ids of timezones


Методы

__construct()

__construct(int $rawOffset, string $ID, array $options): TimeZone

getId()

getId(): string

Get id of the timezone


getRawOffset()

getRawOffset(): string

Get raw offset of the timezone


__clone()

__clone(): void

Class is immutable, the disallowed clone method