Die DateTimeZone Klasse

(PHP 5 >= 5.2.0, PHP 7)

Einführung

Abbildung der Zeitzone.

Klassenbeschreibung

DateTimeZone {
/* Konstanten */
const integer AFRICA = 1 ;
const integer AMERICA = 2 ;
const integer ANTARCTICA = 4 ;
const integer ARCTIC = 8 ;
const integer ASIA = 16 ;
const integer ATLANTIC = 32 ;
const integer AUSTRALIA = 64 ;
const integer EUROPE = 128 ;
const integer INDIAN = 256 ;
const integer PACIFIC = 512 ;
const integer UTC = 1024 ;
const integer ALL = 2047 ;
const integer ALL_WITH_BC = 4095 ;
const integer PER_COUNTRY = 4096 ;
/* Methoden */
public __construct ( string $timezone )
public getLocation ( ) : array|false
public getName ( ) : string
public getOffset ( DateTimeInterface $datetime ) : int|false
public getTransitions ([ int $timestampBegin = PHP_INT_MIN [, int $timestampEnd = PHP_INT_MAX ]] ) : array|false
public static listAbbreviations ( ) : array|false
public static listIdentifiers ([ int $timezoneGroup = DateTimeZone::ALL [, string $countryCode = NULL ]] ) : array|false
}

Vordefinierte Konstanten

DateTimeZone::AFRICA

Afrikanische Zeitzone

DateTimeZone::AMERICA

Amerikanische Zeitzone

DateTimeZone::ANTARCTICA

Antarktische Zeitzone

DateTimeZone::ARCTIC

Arktische Zeitzone.

DateTimeZone::ASIA

Asiatische Zeitzone

DateTimeZone::ATLANTIC

Atlantische Zeitzone.

DateTimeZone::AUSTRALIA

Australische Zeitzone.

DateTimeZone::EUROPE

Europäische Zeitzone.

DateTimeZone::INDIAN

Indische Zeitzone.

DateTimeZone::PACIFIC

Pazifische Zeitzonen

DateTimeZone::UTC

UTC Zeitzonen

DateTimeZone::ALL

Alle Zeitzonen

DateTimeZone::ALL_WITH_BC

Alle Zeitzonen mit Abwärtskompabilität.

DateTimeZone::PER_COUNTRY

Zeitzonen pro Land

Inhaltsverzeichnis