php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9278 mktime returns "valid" values (not -1) for dates like 2/31/2001, etc.
Submitted: 2001-02-15 08:32 UTC Modified: 2001-02-21 03:31 UTC
From: pnh102 at psu dot edu Assigned:
Status: Closed Package: *General Issues
PHP Version: 3.0.16 OS: Mac OS X Server 1.2
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: pnh102 at psu dot edu
New email:
PHP Version: OS:

 

 [2001-02-15 08:32 UTC] pnh102 at psu dot edu
<?
// Midnight on 2/31/2000
print mktime (0,0,0,2,31,2000);
?>
<br>
<?
// Noon on 2/30/2001
print mktime (12,0,0,2,30,2001);
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-21 03:31 UTC] joey@php.net
This is intentional.
See http://www.php.net/manual/en/function.mktime.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC