php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #8703 incorrect example code for mktime
Submitted: 2001-01-14 20:59 UTC Modified: 2001-01-22 20:12 UTC
From: jbarrett at australink dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.3pl1 OS: Debian Linux
Private report: No CVE-ID: None
 [2001-01-14 20:59 UTC] jbarrett at australink dot net
Example 2 should read instead :-

$lastday = date("d", mktime (0,0,0,3,0,2000));
echo strftime ("Last day in Feb 2000 is: %d", $lastday);
     
$lastday = date("d", mktime (0,0,0,4,-31,2000));
echo strftime ("Last day in Feb 2000 is: %d", $lastday);

(Note if this has been changed in 4.0.4 to not require date ignore me :P i'm running on 4.0.3)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-22 20:12 UTC] jimw@php.net
looks like someone did this and forgot to close the bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 07:01:32 2024 UTC