note 33125 added to function.strtotime

From: Date: Tue, 17 Jun 2003 11:47:52 +0000
Subject: note 33125 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-50484@lists.php.net to get a copy of this message
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). ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33125 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33125&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33125&report=yes

« previous php.notes (#50484) next »