array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.date-create.php', 1 => 'date_create', ), 'up' => array ( 0 => 'ref.datetime.php', 1 => '日付・時刻 関数', ), 'prev' => array ( 0 => 'function.date-create-immutable.php', 1 => 'date_create_immutable', ), 'next' => array ( 0 => 'function.date-date-set.php', 1 => 'date_date_set', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/datetime/functions/date-create.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
DateTime::__construct() の手続き型バージョンです。
DateTime のコンストラクタと異なり、
datetime
に渡された文字列が不正な場合には、
例外をスローする代わりに false
を返します。
DateTimeImmutable::__construct も参照ください。
新しい DateTime クラスのインスタンスを返します。失敗した場合に false
を返します