note 92918 added to function.date-parse
| From: | alan at wilcoxengineering dot com | Date: | Fri, 14 Aug 2009 18:02:30 +0000 |
| Subject: | note 92918 added to function.date-parse | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159479@lists.php.net to get a copy of this message | ||
Caution: date_parse expects months 1..12 only.
date_parse("13/1/5769") for month=13, Ehul in Jewish calendar, results in month==3
instead of month==13.
It does, however, report the error array showing "Unexpected Character."
It would be nice if date_parse could handle the months properly (just report back a "13"
for the month). The older approach of substr() is my workaround.
----
Server IP: 209.41.74.194
Probable Submitter: 72.70.210.101
----
Manual Page -- http://www.php.net/manual/en/function.date-parse.php
Edit -- https://master.php.net/note/edit/92918
Del: integrated -- https://master.php.net/note/delete/92918/integrated
Del: useless -- https://master.php.net/note/delete/92918/useless
Del: bad code -- https://master.php.net/note/delete/92918/bad+code
Del: spam -- https://master.php.net/note/delete/92918/spam
Del: non-english -- https://master.php.net/note/delete/92918/non-english
Del: in docs -- https://master.php.net/note/delete/92918/in+docs
Del: other reasons-- https://master.php.net/note/delete/92918
Reject -- https://master.php.net/note/reject/92918
Search -- https://master.php.net/manage/user-notes.php