note 29620 deleted from function.mktime by vincent
| From: | vincent@php.net | Date: | Wed, 10 Sep 2003 19:21:53 +0000 |
| Subject: | note 29620 deleted from function.mktime by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56032@lists.php.net to get a copy of this message | ||
Note Submitter: jos@xproductions.nl
----
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...