Bug #12185 Updated: mktime can't cope with dates before 1970 on windows.

From: Date: Sun, 22 Jul 2001 13:14:19 +0000
Subject: Bug #12185 Updated: mktime can't cope with dates before 1970 on windows.
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-60594@lists.php.net to get a copy of this message
ID: 12185 Updated by: dbeu Reported By: ian@lemnet.com 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@php.net 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@lemnet.com 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

« previous php.dev (#60594) next »