PHP 4.0 Bug #8703 Updated: incorrect example code for mktime
| From: | jimw@php.net | Date: | Tue, 23 Jan 2001 01:13:00 +0000 |
| Subject: | PHP 4.0 Bug #8703 Updated: incorrect example code for mktime | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44763@lists.php.net to get a copy of this message | ||
ID: 8703
Updated by: jimw
Reported By: jbarrett@australink.net
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Assigned To:
Comments:
looks like someone did this and forgot to close the bug.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-14 20:59:01] jbarrett@australink.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)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8703