note 68513 added to function.strtotime
| From: | (_at_) | Date: | Mon, 31 Jul 2006 02:21:36 +0000 |
| Subject: | note 68513 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115364@lists.php.net to get a copy of this message | ||
Beware! For the month increment/decrement, 1 month=30days exactly!
If you do this:
echo date('Y-m-d',strtotime('-1 months'));
on 31 july (2006-07-31), you 'll get "2006-07-01"
Not going to substract a full month as you'd expect!
It has been reported as a bug, and deemed as bogus by some administrator, who obviously has a very
strange calendar hanging on his wall....:)
----
Server IP: 203.16.234.91
Probable Submitter: 59.167.34.104
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/68513
Del: integrated -- https://master.php.net/note/delete/68513/integrated
Del: useless -- https://master.php.net/note/delete/68513/useless
Del: bad code -- https://master.php.net/note/delete/68513/bad+code
Del: spam -- https://master.php.net/note/delete/68513/spam
Del: non-english -- https://master.php.net/note/delete/68513/non-english
Del: in docs -- https://master.php.net/note/delete/68513/in+docs
Del: other reasons-- https://master.php.net/note/delete/68513
Reject -- https://master.php.net/note/reject/68513
Search -- https://master.php.net/manage/user-notes.php