The IntlTimeZone class

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)

Introduction

Class synopsis

classIntlTimeZone {
publicconstintDISPLAY_SHORT;
publicconstintDISPLAY_LONG;
publicconstintTYPE_ANY;
publicconstintTYPE_CANONICAL;
private__construct()
publicstaticcountEquivalentIDs(string$timezoneId): int|false
publicstaticcreateTimeZone(string$timezoneId): ?IntlTimeZone
publicstaticcreateTimeZoneIDEnumeration(int$type, ?string$region = null, ?int$rawOffset = null): IntlIterator|false
publicstaticgetCanonicalID(string$timezoneId, bool&$isSystemId = null): string|false
publicgetDisplayName(bool$dst = false, int$style = IntlTimeZone::DISPLAY_LONG, ?string$locale = null): string|false
publicstaticgetEquivalentID(string$timezoneId, int$offset): string|false
publicstaticgetGMT(): IntlTimeZone
publicgetID(): string|false
publicstaticgetIDForWindowsID(string$timezoneId, ?string$region = null): string|false
publicgetOffset(
    float$timestamp,
    bool$local,
    int&$rawOffset,
    int&$dstOffset
): bool
publicgetRawOffset(): int
publicstaticgetRegion(string$timezoneId): string|false
publicstaticgetUnknown(): IntlTimeZone
publicstaticgetWindowsID(string$timezoneId): string|false
}

Table of Contents

To Top