|
IntlDateFormatter::setTimeZonedatefmt_set_timezoneタイムゾーンを設定する 説明オブジェクト指向型
public bool IntlDateFormatter::setTimeZone(IntlTimeZoneDateTimeZonestringnull
$timezone)手続き型 bool datefmt_set_timezone(IntlDateFormatter
$formatter, IntlTimeZoneDateTimeZonestringnull $timezone)IntlDateFormatter によって使われるタイムゾーンを設定します。 パラメータ
戻り値
成功した場合に 変更履歴
例
例1 IntlDateFormatter::setTimeZone の例 上の例の出力は以下となります。
NULL
Europe/Amsterdam
IntlTimeZone
Europe/Lisbon
DateTimeZone
Europe/Paris
String
Europe/Rome
IntlTimeZone Object
(
[valid] => 1
[id] => GMT+00:30
[rawOffset] => 1800000
[currentOffset] => 1800000
)
参考
|