note 56262 added to function.strtotime
| From: | sholland at napervillegi dot com | Date: | Mon, 29 Aug 2005 01:25:00 +0000 |
| Subject: | note 56262 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94321@lists.php.net to get a copy of this message | ||
One behavior to be aware of is that if you have "/" in the date then strtotime will
believe the last number is the year, while if you use a "-" then the first number is the
year.
12/4/03 will be evaluated to the same time as 03-12-4.
This is in the gnu documentation linked to in the article. I confirmed the behavior with strtotime
and getdate.
Steve Holland
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56262
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56262&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56262&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56262&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56262&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56262&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56262&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56262&report=yes
Search -- http://master.php.net/manage/user-notes.php