The DateTimeZone class

Introduction

Representation of time zone.

Class synopsis

DateTimeZone
/* Constants */
public const int DateTimeZone::AFRICA;
public const int DateTimeZone::AMERICA;
public const int DateTimeZone::ANTARCTICA;
public const int DateTimeZone::ARCTIC;
public const int DateTimeZone::ASIA;
public const int DateTimeZone::ATLANTIC;
public const int DateTimeZone::AUSTRALIA;
public const int DateTimeZone::EUROPE;
public const int DateTimeZone::INDIAN;
public const int DateTimeZone::PACIFIC;
public const int DateTimeZone::UTC;
public const int DateTimeZone::ALL;
public const int DateTimeZone::ALL_WITH_BC;
public const int DateTimeZone::PER_COUNTRY;
/* Methods */
public __construct(string $timezone)
public arrayfalse getLocation()
public string getName()
public int getOffset(DateTimeInterface $datetime)
public arrayfalse getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX)
public static array listAbbreviations()
public static array listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, stringnull $countryCode = null)

Predefined Constants

DateTimeZone::AFRICA

Africa time zones.

DateTimeZone::AMERICA

America time zones.

DateTimeZone::ANTARCTICA

Antarctica time zones.

DateTimeZone::ARCTIC

Arctic time zones.

DateTimeZone::ASIA

Asia time zones.

DateTimeZone::ATLANTIC

Atlantic time zones.

DateTimeZone::AUSTRALIA

Australia time zones.

DateTimeZone::EUROPE

Europe time zones.

DateTimeZone::INDIAN

Indian time zones.

DateTimeZone::PACIFIC

Pacific time zones.

DateTimeZone::UTC

UTC time zones.

DateTimeZone::ALL

All time zones.

DateTimeZone::ALL_WITH_BC

All time zones including backwards compatible.

DateTimeZone::PER_COUNTRY

Time zones per country.

Table of Contents