DateTimeZone
class DateTimeZone (View source)
Representation of time zone
Constants
AFRICA |
|
AMERICA |
|
ANTARCTICA |
|
ARCTIC |
|
ASIA |
|
ATLANTIC |
|
AUSTRALIA |
|
EUROPE |
|
INDIAN |
|
PACIFIC |
|
UTC |
|
ALL |
|
ALL_WITH_BC |
|
PER_COUNTRY |
|
Methods
No description
Returns the name of the timezone
Returns location information for a timezone
Returns all transitions for the timezone
Returns associative array containing dst, offset and the timezone name
Returns a numerically indexed array with all timezone identifiers
No description
No description
No description
No description
Details
__construct(string $timezone)
No description
string
getName()
Returns the name of the timezone
array|false
getLocation()
Returns location information for a timezone
int
getOffset(DateTimeInterface $datetime)
Returns the timezone offset from GMT
array|false
getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX)
Returns all transitions for the timezone
static array
listAbbreviations()
Returns associative array containing dst, offset and the timezone name
static array
listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, string $countryCode = null)
Returns a numerically indexed array with all timezone identifiers
void
__wakeup()
No description
static
__set_state($an_array)
No description
array
__serialize()
No description
void
__unserialize(array $data)
No description