(No version information available, might be only in CVS)
IntlDateFormatter::setTimeZoneId -- datefmt_set_timezone_id — 使用するタイムゾーンを設定する
オブジェクト指向型
手続き型
使用するタイムゾーンを設定します。
Formatter リソース。
使用するタイムゾーンのゾーン ID 文字列。 NULL あるいは空文字列を指定すると、 実行時のデフォルトタイムゾーンを使用します。
成功した場合に TRUE を、失敗した場合に FALSE を返します。
例1 datefmt_set_timezone_id() の例
<?php
$fmt = datefmt_create( "en_US" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN );
echo "timezone_id of the formatter is : ".datefmt_get_timezone_id($fmt);
datefmt_set_timezone_id($fmt,'CN');
echo "Now timezone_id of the formatter is : ".datefmt_get_timezone_id($fmt);
?>
例2 オブジェクト指向の例
<?php
$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN );
echo "timezone_id of the formatter is : ".$fmt->getTimezoneId();
$fmt->setTimezoneId('CN');
echo "Now timezone_id of the formatter is : ".$fmt->getTimezoneId();
?>
上の例の出力は以下となります。
timezone_id of the formatter is : America/Los_Angeles Now timezone_id of the formatter is : CN
NPO法人の設立(東京・大阪) 東京や大阪などNPO法人を設立する場合の注意点等を紹介
不動産・賃貸・マンション 不動産・賃貸・マンションに関する用語集です。
堺市の入院・内科大阪の賃貸探し 大阪で賃貸を探している方は大阪ホームへ
東京の賃貸マンション 東京で賃貸を探すなら東京賃貸.orgへ