note 81352 added to function.strtotime

From: Date: Sun, 24 Feb 2008 02:22:48 +0000
Subject: note 81352 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-136448@lists.php.net to get a copy of this message
The phrase "about any English textual datetime description" is misleading. The GNU Date Input Formats syntax is actually quite limited and, counterintuitively, some commonly used formats result in incorrect or invalid dates that confound users. In particular, the commonly used m-d-y format does not work. 2-23-08 is invalid! It would be helpful to list the allowed date formats in the documentation rather than just by reference to the GNU docs: for numeric months the only valid formats are: y-m-d m/d/y m/d for text months the only valid formats are: d month y d month month d y d-month-y month d Although the GNU doc says leading zeros are required for numbers less than 10 this does not seem to be necessary (5/7/8 is same as 05/07/08). ---- Server IP: 69.147.83.197 Probable Submitter: 71.169.27.112 ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- https://master.php.net/note/edit/81352 Del: integrated -- https://master.php.net/note/delete/81352/integrated Del: useless -- https://master.php.net/note/delete/81352/useless Del: bad code -- https://master.php.net/note/delete/81352/bad+code Del: spam -- https://master.php.net/note/delete/81352/spam Del: non-english -- https://master.php.net/note/delete/81352/non-english Del: in docs -- https://master.php.net/note/delete/81352/in+docs Del: other reasons-- https://master.php.net/note/delete/81352 Reject -- https://master.php.net/note/reject/81352 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136448) next »