note 33125 deleted from function.strtotime by sniper
| From: | sniper@php.net | Date: | Tue, 21 Oct 2003 11:00:57 +0000 |
| Subject: | note 33125 deleted from function.strtotime by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58995@lists.php.net to get a copy of this message | ||
Note Submitter: Tim Fountain
----
Interestingly this:
$timestamp = strtotime("- 1 year");
results in a timestamp 1 year in the future, whereas this:
$timestamp = strtotime("-1 year");
does as expected (timestamp 1 year in the past).
However both of these:
$timestamp = strtotime("-6 months");
$timestamp = strtotime("- 6 months");
produce the expected result (PHP 4.3.1).