ID:               49259
 Updated by:       [email protected]
 Reported By:      alan at wilcoxengineering dot com
-Status:           Open
+Status:           Wont fix
 Bug Type:         Feature/Change Request
 Operating System: Linux
 PHP Version:      5.2.10
 New Comment:

The date_parse() function is meant to parse dates in the proleptic
Gregorian calendar.


Previous Comments:
------------------------------------------------------------------------

[2009-08-14 18:02:26] alan at wilcoxengineering dot com

Description:
------------
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.

Reproduce code:
---------------
---
>From manual page: function.date-parse
---
date_parse("13/1/5769")  

Expected result:
----------------
Array for month should show 13 instead of 3



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49259&edit=1

Reply via email to