note 22501 added to function.mktime

From: Date: Thu, 20 Jun 2002 12:48:38 +0000
Subject: note 22501 added to function.mktime
Groups: php.notes 
Request: Send a blank email to php-notes+get-32039@lists.php.net to get a copy of this message
Be careful when using mktime with the date function to create past and future dates in countries where the clocks adjust for daylight savings time. All the examples here use mktime ( 0,0,0, ... which will give you problems as daylight savings time goes out of effect. If you now use date("M-d-Y", mktime ( 0,0,0, ... in a loop to generate days over a period where the clock goes back an hour, you will generate that date twice! Avoid this by creating days at lunchtime rather than midnight with mktime ( 11,0,0, ... -- http://www.php.net/manual/en/function.mktime.php http://master.php.net/manage/user-notes.php?action=edit+22501 http://master.php.net/manage/user-notes.php?action=delete+22501 http://master.php.net/manage/user-notes.php?action=reject+22501

« previous php.notes (#32039) next »