(PHP 5 >= 5.5.0, PHP 7, PECL >= 3.0.0a1)
はじめに
クラス概要
IntlTimeZone {
const
int
DISPLAY_SHORT
= 1
const
int
DISPLAY_LONG
= 2
/* メソッド */
public static countEquivalentIDs
( string $zoneId
) : int
public static createDefault ( ) : IntlTimeZone
public static createEnumeration
([ mixed $countryOrRawOffset
] ) : IntlIterator
public static createTimeZone
( string $zoneId
) : IntlTimeZone
public static createTimeZoneIDEnumeration
( int $zoneType
[, string $region
[, int $rawOffset
]] ) : IntlIterator|false
public static fromDateTimeZone
( DateTimeZone $zoneId
) : IntlTimeZone
public static getCanonicalID
( string $zoneId
[, bool &$isSystemID
] ) : string
public getDisplayName
([ bool $isDaylight
[, int $style
[, string $locale
]]] ) : string
public getDSTSavings ( ) : int
public static getEquivalentID
( string $zoneId
, int $index
) : string
public getErrorCode ( ) : int
public getErrorMessage ( ) : string
public static getGMT ( ) : IntlTimeZone
public getID ( ) : string
public static getIDForWindowsID
( string $timezone
[, string $region
] ) : string|false
public getOffset
( float $date
, bool $local
, int &$rawOffset
, int &$dstOffset
) : bool
public getRawOffset ( ) : int
public static getRegion
( string $zoneId
) : string|false
public static getTZDataVersion ( ) : string
public static getUnknown ( ) : IntlTimeZone
public static getWindowsID
( string $timezone
) : string|false
public hasSameRules
( IntlTimeZone $otherTimeZone
) : bool
public toDateTimeZone ( ) : DateTimeZone
public useDaylightTime ( ) : bool
}
定義済み定数
IntlTimeZone::DISPLAY_SHORT
IntlTimeZone::DISPLAY_LONG
目次
- IntlTimeZone::countEquivalentIDs — 指定した ID を含む等価グループの中にある ID の数を取得する
- IntlTimeZone::createDefault — このホストのデフォルトタイムゾーンの新しいコピーを作る
- IntlTimeZone::createEnumeration — 指定した国あるいはオフセットに関連するタイムゾーン ID の一覧を取得する
- IntlTimeZone::createTimeZone — 指定した ID のタイムゾーンオブジェクトを作る
- IntlTimeZone::createTimeZoneIDEnumeration — Get an enumeration over system time zone IDs with the given filter conditions
- IntlTimeZone::fromDateTimeZone — DateTimeZone からタイムゾーンオブジェクトを作る
- IntlTimeZone::getCanonicalID — 指定したタイムゾーン ID の、正式なシステムタイムゾーン ID あるいは正規化したカスタムタイムゾーン ID を取得する
- IntlTimeZone::getDisplayName — このタイムゾーンの、ユーザー向けに表示する名前を取得する
- IntlTimeZone::getDSTSavings — ローカルの標準時刻からローカルの実測時刻を得るために加算する時間を取得する
- IntlTimeZone::getEquivalentID — 指定した ID を含む等価グループの ID を取得する
- IntlTimeZone::getErrorCode — 直近のエラーコードを取得する
- IntlTimeZone::getErrorMessage — 直近のエラーメッセージを取得する
- IntlTimeZone::getGMT — GMT (UTC) タイムゾーンを作る
- IntlTimeZone::getID — タイムゾーン ID を取得する
- IntlTimeZone::getIDForWindowsID — Translate a Windows timezone into a system timezone
- IntlTimeZone::getOffset — 指定した時刻の、GMT へのオフセットを取得する
- IntlTimeZone::getRawOffset — (夏時間を考慮せずに) GMT へのオフセットを取得する
- IntlTimeZone::getRegion — Get the region code associated with the given system time zone ID
- IntlTimeZone::getTZDataVersion — ICU が使っているタイムゾーンデータのバージョンを取得する
- IntlTimeZone::getUnknown — Get the "unknown" time zone
- IntlTimeZone::getWindowsID — Translate a system timezone into a Windows timezone
- IntlTimeZone::hasSameRules — このタイムゾーンが別のタイムゾーンと同じルールおよびオフセットを使っているかどうかを調べる
- IntlTimeZone::toDateTimeZone — DateTimeZone オブジェクトに変換する
- IntlTimeZone::useDaylightTime — このタイムゾーンが夏時間を採用しているかどうかを調べる
/* 定数 */