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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
18 + 32 = ?
Subscribe to this entry?

 
 [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