#36401 [Opn->Bgs]: Bug in mktime()
| From: | derick@php.net | Date: | Wed, 15 Feb 2006 12:35:20 +0000 |
| Subject: | #36401 [Opn->Bgs]: Bug in mktime() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93289@lists.php.net to get a copy of this message | ||
ID: 36401
Updated by: derick@php.net
Reported By: marcel dot alburg at alkronet dot info
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Linux
PHP Version: 5.1.2
New Comment:
Why? The result is correct. You're getting the timestamp for 0
january-1 (december of the previous year), year 0 (which is 2000) at
00:00:00. This is exactly 30 november 1999, 00:00:00
Previous Comments:
------------------------------------------------------------------------
[2006-02-15 13:31:15] marcel dot alburg at alkronet dot info
Description:
------------
If i enter
print mktime(0,0,0,0,0,0)
i get "943916400" but it must be "0"
print date('r', mktime(0,0,0,0,0,0));
returns
Tue, 30 Nov 1999 00:00:00 +0100
Marcel Alburg
Reproduce code:
---------------
print mktime(0,0,0,0,0,0);
returns 943916400
Expected result:
----------------
mktime(0,0,0,0,0,0) must be 0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36401&edit=1