TimeZone¶
-
php\time\TimeZone Class TimeZone, Immutable
Methods
__construct($rawOffset, $ID, $options = null)¶
Параметры:
- $rawOffset –
int- $ID –
string- $options –
arrayРезультат:
getId()¶Get id of the timezone
Результат: string
getRawOffset()¶Get raw offset of the timezone
Результат: string
__clone()¶private
- static
UTC¶Returns UTC Time zone
Результат: php\time\TimeZone
- static
of($ID)¶
Параметры:
- $ID –
string- code of timezone, e.g.: ‘UTC’Результат:
- static
setDefault($zone, $globally = false)¶Set default time zone for Time objects, by default - the default timezone is UTC
Параметры:
- $zone – php\time\TimeZone
- $globally –
bool
- static
getDefault($globally = false)¶Get default timezone
Параметры:
- $globally –
bool- iffalse- only for the current environmentРезультат:
- static
getAvailableIDs($rawOffset = null)¶Returns all available ids of timezones
Параметры:
- $rawOffset –
int,nullРезультат:
string[]