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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri May 10 07:01:31 2024 UTC