ID:               46732
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dynkin at gmail dot com
-Status:           Open
+Status:           Assigned
-Bug Type:         Documentation problem
+Bug Type:         Date/time related
 Operating System: linux
-PHP Version:      Irrelevant
+PHP Version:      PHP 5
-Assigned To:      
+Assigned To:      derick
 New Comment:

This is a bug in the code though


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

[2008-12-02 16:27:08] dynkin at gmail dot com

Description:
------------
Documentation of mktime's year parameter states that

> The number of the year, may be a two or four digit value,
> with values between 0-69 mapping to 2000-2069 and
> 70-100 to 1970-2000. 

But this part, `70-100 to 1970-2000`, is not precise.

As in the implementation in ext/date/php_date.c::php_mktime,
the doc should read:
"70-110 to 1970-2010", instead of, "70-100 to 1970-2000".


Reproduce code:
---------------
echo date("Y-m-d", mktime(0,0,0,1,1,110));

Actual result:
--------------
2010-01-01


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


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

Reply via email to