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

search for in the

実行時設定> <要件
Last updated: Fri, 13 Nov 2009

view this page in

インストール手順

PHP コアに含まれるため、 追加のインストール無しで使用できます。

注意: 最新のタイムゾーンデータベースの取得
最新バージョンのタイムゾーンデータベースは、PECL の » timezonedb からインストールできます。

注意: PHP 5.1.x における実験的な DateTime サポート
DateTime クラス (とそれに関連する関数) がデフォルトで使用できるようになったのは PHP 5.2.0 からですが、 PHP 5.1.x でも実験的な DateTime サポートを追加することができます。 そのためには、configure/コンパイルの前に CFLAGS=-DEXPERIMENTAL_DATE_SUPPORT=1 フラグを使用します。



add a note add a note User Contributed Notes
インストール手順
dave2008 at buchananville dot com
22-Jul-2008 04:40
A note that might save some people some time:

This note on this page about DateTime object not being available unless you have PHP 5.2.0 or greater ONLY applies to SOME of the functions listed in the function list section of this manual.

The DateTime is a new OO-based approach to date manipulation, but the old methods such as strtotime() and date() have been there for ages and still get the job done.

To new users a "This not available until 5.2.0" note on the "Installation" page for this section seems to imply that ALL the functionality of this section is not available until 5.2.0.

Maybe we should put a note on each of the "new" functionality pages that says.  "This is new as of 5.2.0, and effectively replaces X and Y legacy functions".  Just a thought.

実行時設定> <要件
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites