array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.date-create.php', 1 => 'date_create', ), 'up' => array ( 0 => 'ref.datetime.php', 1 => 'Date/Time Functions', ), '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' => 'en', 'path' => 'reference/datetime/functions/date-create.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
This is the procedural version of DateTime::__construct().
Unlike the DateTime constructor, it will return
false
instead of an exception if the passed in
datetime
string is invalid.
Returns a new DateTime instance or false
on failure