Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #33682 : The function localtime() don't work as expected
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 2nd April 19:52
External User
 
Posts: 1
Default #33682 : The function localtime() don't work as expected



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
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666