#46732 [Opn->Asn]: mktime.year description is wrong

From: Date: Tue, 02 Dec 2008 17:06:24 +0000
Subject: #46732 [Opn->Asn]: mktime.year description is wrong
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131538@lists.php.net to get a copy of this message
ID: 46732 Updated by: derick@php.net 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

« previous php.bugs (#131538) next »