note 38116 added to function.mktime
| From: | iain at seatofthepants dot net | Date: | Tue, 09 Dec 2003 00:49:25 +0000 |
| Subject: | note 38116 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61668@lists.php.net to get a copy of this message | ||
In the above example it should ne boted that if you try to calculate the command at midnight on the
28/04/2004 you will get an erroneous response. This has been driving me to distraction.
$myTime = mktime( 0, 0, 0, 3, 28, 2004);
Solution I found was to create the time at 3am well after the 2am daylight savings problem, viz:
$myTime = mktime( 3, 0, 0, 3, 28, 2004);
Not sure if this is documented anywhere.
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38116
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38116&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38116&report=yes
Search -- http://master.php.net/manage/user-notes.php