[PHP-DOC] Bug #12185 Updated: mktime can't cope with dates before 1970 on windows. From: dbeu <email protected>
Date: 07/22/01

ID: 12185
Updated by: dbeu
Reported By: ian <email protected>
Old Status: Open
Status: Closed
Bug Type: Documentation problem
Operating System: Windows 2000
PHP Version: 4.0.5
New Comment:

-> closing

Previous Comments:
------------------------------------------------------------------------

[2001-07-21 18:07:23] andy <email protected>

This is because timestamps are seconds from January 1 1970.
 If the date is before that, the timestamp goes into
negatives. My only conclusion would be that Windows 2000
does not like negative timestamps.

I don't think this requires changing the documentation to
list every platform and if it supports it or not.

------------------------------------------------------------------------

[2001-07-16 08:59:38] ian <email protected>

http://www.php.net/manual/en/function.mktime.php

Current text:

"Year may be a two or four digit value, with values between 0-69 mapping to 2000-2069 and 70-99 to 1970-1999 (on systems where time_t is a 32bit signed integer, as most common today, the valid range for year is somewhere between 1902 and 2037)."

Years before 1970 work on my installation of Linux, but do not work on Windows 2000. This should be made clear.

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=12185&edit=1