intl
PHP Manual

The IntlTimeZone class

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

简介

类摘要

IntlTimeZone {
/* Constants */
const integer DISPLAY_SHORT = 1 ;
const integer DISPLAY_LONG = 2 ;
/* 方法 */
public static int countEquivalentIDs ( string $zoneId )
public static IntlTimeZone createDefault ( void )
public static IntlIterator createEnumeration ([ mixed $countryOrRawOffset ] )
public static IntlTimeZone createTimeZone ( string $zoneId )
public static IntlIterator createTimeZoneIDEnumeration ( int $zoneType [, string $region [, int $rawOffset ]] )
public static IntlTimeZone fromDateTimeZone ( DateTimeZone $zoneId )
public static string getCanonicalID ( string $zoneId [, bool &$isSystemID ] )
public string getDisplayName ([ bool $isDaylight [, int $style [, string $locale ]]] )
public int getDSTSavings ( void )
public static string getEquivalentID ( string $zoneId , int $index )
public int getErrorCode ( void )
public string getErrorMessage ( void )
public static IntlTimeZone getGMT ( void )
public string getID ( void )
public static string getIDForWindowsID ( string $timezone [, string $region ] )
public int getOffset ( float $date , bool $local , int &$rawOffset , int &$dstOffset )
public int getRawOffset ( void )
public static string getRegion ( string $zoneId )
public static string getTZDataVersion ( void )
public static IntlTimeZone getUnknown ( void )
public static string getWindowsID ( string $timezone )
public bool hasSameRules ( IntlTimeZone $otherTimeZone )
public DateTimeZone toDateTimeZone ( void )
public bool useDaylightTime ( void )
}

预定义常量

IntlTimeZone::DISPLAY_SHORT

IntlTimeZone::DISPLAY_LONG

Table of Contents


intl
PHP Manual