(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)
类摘要
class 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 static getEquivalentID(
string $timezoneId
,
int $offset
):
string|false
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 static getRegion(
string $timezoneId
):
string|false
public static getWindowsID(
string $timezoneId
):
string|false
}
预定义常量
IntlTimeZone::DISPLAY_SHORT
-
IntlTimeZone::DISPLAY_LONG
-