#33682 [Opn->Bgs]: The function localtime() don't work as expected
| From: | derick@php.net | Date: | Wed, 13 Jul 2005 18:57:03 +0000 |
| Subject: | #33682 [Opn->Bgs]: The function localtime() don't work as expected | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81822@lists.php.net to get a copy of this message | ||
ID: 33682
Updated by: derick@php.net
Reported By: v1d4l0k4 at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Windows XP SP2
PHP Version: 5.0.4
New Comment:
How much is 2005 - 1900? Exactly, 105. There is no bug here and the
manual clearly describes that it's year - 1900.
Previous Comments:
------------------------------------------------------------------------
[2005-07-13 20:29:10] v1d4l0k4 at gmail dot com
Description:
------------
The function localtime() don't work as expected. In the manual says
that the key associative tm_year shows the year since 1900.
But, if year is higher than 2000, this key associative represents the
year - 1900, or either, a hundred and few.
Reproduce code:
---------------
<?
print_r(localtime());
?>
Expected result:
----------------
I expect that the key associative tm_year represents 2005, no 105.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33682&edit=1