note 29620 added to function.mktime

From: Date: Wed, 19 Feb 2003 14:02:08 +0000
Subject: note 29620 added to function.mktime
Groups: php.notes 
Request: Send a blank email to php-notes+get-44199@lists.php.net to get a copy of this message
Be aware of daylight savingstime when doing calulations. for instance: $newDate=mktime(0,0,0,3,31,2003); $newDate-=86400; print(date('d-m-Y',$newDate)); will print: 29-3-2003 instead of 30-3-2003 in fact it is the timestamp for '11 PM 29-3-2003' because 30-3-2003 has only 23 hours... -- http://www.php.net/manual/en/function.mktime.php http://master.php.net/manage/user-notes.php?action=edit+29620 http://master.php.net/manage/user-notes.php?action=delete+29620 http://master.php.net/manage/user-notes.php?action=reject+29620

« previous php.notes (#44199) next »