note 71036 deleted from function.date by bobby
| From: | bobby@php.net | Date: | Thu, 09 Nov 2006 15:31:14 +0000 |
| Subject: | note 71036 deleted from function.date by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-119556@lists.php.net to get a copy of this message | ||
Note Submitter: lpiepho AT m-m-m DOT de
Reason: useless
----
The example
$tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y"));
does not work properly, because it does not consider end or start of a month:
$date = mktime(0,0,0,10,31,2006);
echo date("d", $time)+1;
does of course not return "01" but "32".
Better use strtotime("+1 day")