(PHP 5 >= 5.2.0, PHP 7, PHP 8)
Representation of time zone.
public getLocation(): array|false
public getName(): string
public getOffset(DateTimeInterface $datetime): int
public getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX): array|false
public static listAbbreviations(): array
public static listIdentifiers(int $timezoneGroup = DateTimeZone::ALL, ?string $countryCode = null): array}
DateTimeZone::AFRICA int Africa time zones.
DateTimeZone::AMERICA int America time zones.
DateTimeZone::ANTARCTICA int Antarctica time zones.
DateTimeZone::ARCTIC int Arctic time zones.
DateTimeZone::ASIA int Asia time zones.
DateTimeZone::ATLANTIC int Atlantic time zones.
DateTimeZone::AUSTRALIA int Australia time zones.
DateTimeZone::EUROPE int Europe time zones.
DateTimeZone::INDIAN int Indian time zones.
DateTimeZone::PACIFIC int Pacific time zones.
DateTimeZone::UTC int UTC time zones.
DateTimeZone::ALL int All time zones.
DateTimeZone::ALL_WITH_BC int All time zones including backwards compatible.
DateTimeZone::PER_COUNTRY int Time zones per country.
| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.datetimezone.php