note 84030 added to function.strtotime
| From: | Anonymous at osu1 dot php dot net | Date: | Tue, 24 Jun 2008 19:59:30 +0000 |
| Subject: | note 84030 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140780@lists.php.net to get a copy of this message | ||
When using a custom timestamp and adding a day to it, this works:
strtotime("20080601 +1 day")
this does not:
strtotime("20080601") + strtotime("+1 day")
that's because "+1 day" is another way to say the timestamp corresponding to tomorrow
as of right now.
If you do it the wrong way, you'll end up with really bizarre dates in your loops. I was going
from 20080601 to 19101019 to 19490412. What fun it was figuring that out. :)
----
Server IP: 64.71.164.2
Probable Submitter: 67.91.121.82
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/84030
Del: integrated -- https://master.php.net/note/delete/84030/integrated
Del: useless -- https://master.php.net/note/delete/84030/useless
Del: bad code -- https://master.php.net/note/delete/84030/bad+code
Del: spam -- https://master.php.net/note/delete/84030/spam
Del: non-english -- https://master.php.net/note/delete/84030/non-english
Del: in docs -- https://master.php.net/note/delete/84030/in+docs
Del: other reasons-- https://master.php.net/note/delete/84030
Reject -- https://master.php.net/note/reject/84030
Search -- https://master.php.net/manage/user-notes.php