note 68954 added to function.strtotime
| From: | phlipping at yahoo dot com | Date: | Thu, 17 Aug 2006 06:43:44 +0000 |
| Subject: | note 68954 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115993@lists.php.net to get a copy of this message | ||
Re: horvathi
"-1 month" works correctly, and your example is correct... -1 month from 31 July would be
31 June - but June has 30 days, so 31 June is 1 July.
It's certainly not just "-30 days" - "-1 month" from, say, 10 Feb correctly
gives 10 Jan.
----
Server IP: 66.163.161.117
Probable Submitter: 134.148.20.33 (proxied: 134.148.76.119)
----
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/68954
Del: integrated -- https://master.php.net/note/delete/68954/integrated
Del: useless -- https://master.php.net/note/delete/68954/useless
Del: bad code -- https://master.php.net/note/delete/68954/bad+code
Del: spam -- https://master.php.net/note/delete/68954/spam
Del: non-english -- https://master.php.net/note/delete/68954/non-english
Del: in docs -- https://master.php.net/note/delete/68954/in+docs
Del: other reasons-- https://master.php.net/note/delete/68954
Reject -- https://master.php.net/note/reject/68954
Search -- https://master.php.net/manage/user-notes.php