php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #12185 mktime can't cope with dates before 1970 on windows.
Submitted: 2001-07-16 08:59 UTC Modified: 2001-07-22 09:14 UTC
From: ian at lemnet dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.5 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ian at lemnet dot com
New email:
PHP Version: OS:

 

 [2001-07-16 08:59 UTC] ian at lemnet dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-21 18:07 UTC] 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-22 09:14 UTC] dbeu@php.net
-> closing
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 14:00:02 2026 UTC