note 95611 added to datetime.construct

From: Date: Tue, 12 Jan 2010 16:37:05 +0000
Subject: note 95611 added to datetime.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-164881@lists.php.net to get a copy of this message
Also forgot to mention, that MySQL "zeroed" dates do not throw an error but produce a non-sensical date: <?php $d = new DateTime("0000-00-00"); $d->format("Y-m-d"); // "-0001-11-30" ?> Another good reason to write your own class that extends from DateTime. ---- Server IP: 85.214.154.209 Probable Submitter: 173.14.230.129 ---- Manual Page -- http://www.php.net/manual/en/datetime.construct.php Edit -- https://master.php.net/note/edit/95611 Del: integrated -- https://master.php.net/note/delete/95611/integrated Del: useless -- https://master.php.net/note/delete/95611/useless Del: bad code -- https://master.php.net/note/delete/95611/bad+code Del: spam -- https://master.php.net/note/delete/95611/spam Del: non-english -- https://master.php.net/note/delete/95611/non-english Del: in docs -- https://master.php.net/note/delete/95611/in+docs Del: other reasons-- https://master.php.net/note/delete/95611 Reject -- https://master.php.net/note/reject/95611 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164881) next »