#33682 [Bgs]: The function localtime() don't work as expected

From: Date: Wed, 13 Jul 2005 19:25:37 +0000
Subject: #33682 [Bgs]: The function localtime() don't work as expected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81827@lists.php.net to get a copy of this message
ID: 33682 User updated by: v1d4l0k4 at gmail dot com Reported By: v1d4l0k4 at gmail dot com Status: Bogus Bug Type: Date/time related Operating System: Windows XP SP2 PHP Version: 5.0.4 New Comment: Oh ! Excuse-me then ... I'm Brazilian and I check the pt-BR manual. In our language of manual, this don't be explicity, only cite that tm_year is since 1900, don't have examples ... what takes them tm_year is higher than 1900 ... Anyway, very thanks for you ! ;) Previous Comments: ------------------------------------------------------------------------ [2005-07-13 20:57:02] derick@php.net How much is 2005 - 1900? Exactly, 105. There is no bug here and the manual clearly describes that it's year - 1900. ------------------------------------------------------------------------ [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

« previous php.bugs (#81827) next »