gmstrftime
(PHP 3>= 3.0.12, PHP 4 , PHP 5)
gmstrftime --
ロケールの設定に基づきGMT/CUT 時刻/日付をフォーマットする
説明
string
gmstrftime ( string format [, int timestamp])
グリニッジ標準時を返すこと以外は、
strftime()と同じ動作をします。例えば、東部標準時
(GMT -0500)で実行した場合、以下の最初の行は"Dec 31 1998 20:00:00"を
出力し、二行目は"Jan 01 1999 01:00:00"を」出力します。
例 1. gmstrftime() の例
setlocale ('LC_TIME', 'en_US'); echo strftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n"; echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
|
|
strftime()も参照ください。