(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)
public static countEquivalentIDs(string $timezoneId): int|false
public static createDefault(): IntlTimeZone
public static createEnumeration(IntlTimeZone|string|int|float|null $countryOrRawOffset = null): IntlIterator|false
public static createTimeZone(string $timezoneId): ?IntlTimeZone
public static createTimeZoneIDEnumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false
public static fromDateTimeZone(DateTimeZone $timezone): ?IntlTimeZone
public static getCanonicalID(string $timezoneId, bool &$isSystemId = null): string|false
public getDisplayName(bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null): string|false
public getDSTSavings(): int
public static getEquivalentID(string $timezoneId, int $offset): string|false
public getErrorCode(): int|false
public getErrorMessage(): string|false
public static getGMT(): IntlTimeZone
public getID(): string|false
public static getIDForWindowsID(string $timezoneId, ?string $region = null): string|false
public getOffset( float $timestamp, bool $local, int &$rawOffset, int &$dstOffset ): bool
public getRawOffset(): int
public static getRegion(string $timezoneId): string|false
public static getTZDataVersion(): string|false
public static getUnknown(): IntlTimeZone
public static getWindowsID(string $timezoneId): string|false
public hasSameRules(IntlTimeZone $other): bool
public toDateTimeZone(): DateTimeZone|false
public useDaylightTime(): bool}
IntlTimeZone::DISPLAY_SHORT int IntlTimeZone::DISPLAY_LONG int IntlTimeZone::DISPLAY_SHORT_GENERIC int IntlTimeZone::DISPLAY_LONG_GENERIC int IntlTimeZone::DISPLAY_SHORT_GMT int IntlTimeZone::DISPLAY_LONG_GMT int IntlTimeZone::DISPLAY_SHORT_COMMONLY_USED int IntlTimeZone::DISPLAY_GENERIC_LOCATION int IntlTimeZone::TYPE_ANY int IntlTimeZone::TYPE_CANONICAL int IntlTimeZone::TYPE_CANONICAL_LOCATION int | 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.intltimezone.php