Timezones
extends ResourceBundle
in package
FinalYes
Gives access to timezone-related ICU data.
Tags
Table of Contents
Methods
- exists() : bool
- forCountryCode() : array<string|int, mixed>
- getCountryCode() : string
- getGmtOffset() : string
- getIds() : array<string|int, string>
- getName() : string
- getNames() : array<string|int, string>
- getRawOffset() : int
- getPath() : string
Methods
exists()
public
static exists(string $timezone) : bool
Parameters
- $timezone : string
Return values
boolforCountryCode()
public
static forCountryCode(string $country) : array<string|int, mixed>
Parameters
- $country : string
Tags
Return values
array<string|int, mixed>getCountryCode()
public
static getCountryCode(string $timezone) : string
Parameters
- $timezone : string
Tags
Return values
stringgetGmtOffset()
public
static getGmtOffset(string $timezone[, int $timestamp = null ][, string $displayLocale = null ]) : string
Parameters
- $timezone : string
- $timestamp : int = null
- $displayLocale : string = null
Return values
stringgetIds()
public
static getIds() : array<string|int, string>
Return values
array<string|int, string>getName()
public
static getName(string $timezone[, string $displayLocale = null ]) : string
Parameters
- $timezone : string
- $displayLocale : string = null
Tags
Return values
stringgetNames()
public
static getNames([string $displayLocale = null ]) : array<string|int, string>
Parameters
- $displayLocale : string = null
Return values
array<string|int, string>getRawOffset()
public
static getRawOffset(string $timezone[, int $timestamp = null ]) : int
Parameters
- $timezone : string
- $timestamp : int = null
Tags
Return values
intgetPath()
protected
static getPath() : string