The IntlTimeZone class

Introduction

Class synopsis

IntlTimeZone
/* Constants */
public const int IntlTimeZone::DISPLAY_SHORT;
public const int IntlTimeZone::DISPLAY_LONG;
public const int IntlTimeZone::DISPLAY_SHORT_GENERIC;
public const int IntlTimeZone::DISPLAY_LONG_GENERIC;
public const int IntlTimeZone::DISPLAY_SHORT_GMT;
public const int IntlTimeZone::DISPLAY_LONG_GMT;
public const int IntlTimeZone::DISPLAY_SHORT_COMMONLY_USED;
public const int IntlTimeZone::DISPLAY_GENERIC_LOCATION;
public const int IntlTimeZone::TYPE_ANY;
public const int IntlTimeZone::TYPE_CANONICAL;
public const int IntlTimeZone::TYPE_CANONICAL_LOCATION;
/* Methods */
private __construct()
public static intfalse countEquivalentIDs(string $timezoneId)
public static IntlTimeZone createDefault()
public static IntlIteratorfalse createEnumeration(IntlTimeZonestringintfloatnull $countryOrRawOffset = null)
public static IntlTimeZonenull createTimeZone(string $timezoneId)
public static IntlIteratorfalse createTimeZoneIDEnumeration(int $type, stringnull $region = null, intnull $rawOffset = null)
public static IntlTimeZonenull fromDateTimeZone(DateTimeZone $timezone)
public static stringfalse getCanonicalID(string $timezoneId, bool &$isSystemId = null)
public stringfalse getDisplayName(bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, stringnull $locale = null)
public int getDSTSavings()
public static stringfalse getEquivalentID(string $timezoneId, int $offset)
public intfalse getErrorCode()
public stringfalse getErrorMessage()
public static IntlTimeZone getGMT()
public stringfalse getID()
public static stringfalse getIDForWindowsID(string $timezoneId, stringnull $region = null)
public bool getOffset(
    float $timestamp,
    bool $local,
    int &$rawOffset,
    int &$dstOffset
)
public int getRawOffset()
public static stringfalse getRegion(string $timezoneId)
public static stringfalse getTZDataVersion()
public static IntlTimeZone getUnknown()
public static stringfalse getWindowsID(string $timezoneId)
public bool hasSameRules(IntlTimeZone $other)
public DateTimeZonefalse toDateTimeZone()
public bool useDaylightTime()

Predefined Constants

IntlTimeZone::DISPLAY_SHORT

IntlTimeZone::DISPLAY_LONG

IntlTimeZone::DISPLAY_SHORT_GENERIC

IntlTimeZone::DISPLAY_LONG_GENERIC

IntlTimeZone::DISPLAY_SHORT_GMT

IntlTimeZone::DISPLAY_LONG_GMT

IntlTimeZone::DISPLAY_SHORT_COMMONLY_USED

IntlTimeZone::DISPLAY_GENERIC_LOCATION

IntlTimeZone::TYPE_ANY

IntlTimeZone::TYPE_CANONICAL

IntlTimeZone::TYPE_CANONICAL_LOCATION

Table of Contents