downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

インストール/設定> <Date/Time
[edit] Last updated: Fri, 10 Feb 2012

view this page in

導入

以下の関数により、PHP スクリプトを実行するサーバから 日付と時間を取得することが可能となります。 多くの異なる方法で日付や時間をフォーマットするために これらの関数を使用することができます。

日付と時刻の情報は内部的には 64 ビット数値で保持されているので、 (負の年も含めて) あらゆる日付を扱うことができます。 扱える範囲は、過去およそ2920億年と未来の同じくらいの年です。

注意: これらの関数は、使用するサーバのロケールの設定に依存していることに注意してください。 これらの関数を使用する際にはサマータイム (例えば、.$date += 7*24*60*60ではなく、 $date = strtotime('+7 days', $date) とする) および閏年を必ず考慮に入れるようにしてください。

注意: この節で参照しているタイムゾーンは、 サポートされるタイムゾーンのリスト で見つけられます。



add a note add a note User Contributed Notes 導入
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites