date_create and other DateTime related functions are included by default only in PHP versions equal and greater than 5.2.
In PHP 5.1.2 this functionality is marked to be experimental and has to be enabled at compile time.
date_create
(PHP 5 >= 5.2.0)
date_create — 新しい DateTime オブジェクトを返す
説明
DateTime date_create ( [string time [, DateTimeZone timezone]] )DateTime DateTime::__construct ( [string time [, DateTimeZone timezone]] )
パラメータ
- time
strtotime() が理解する形式の文字列。デフォルトは "now" です。
- timezone
その時間のタイムゾーン。
返り値
成功した場合に DateTime オブジェクト、失敗した場合に FALSE を返します。
date_create
nizar dot jouini at gmail.com
07-Mar-2007 10:05
07-Mar-2007 10:05