note 68513 deleted from function.strtotime by bobby
| From: | bobby@php.net | Date: | Mon, 18 Sep 2006 14:30:44 +0000 |
| Subject: | note 68513 deleted from function.strtotime by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117288@lists.php.net to get a copy of this message | ||
Note Submitter: horvathi (_at_) internode -dot- on net
----
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....:)