note 15660 rejected from function.strtotime by zak

From: Date: Tue, 25 Sep 2001 16:34:37 +0000
Subject: note 15660 rejected from function.strtotime by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-18292@lists.php.net to get a copy of this message
A bug: $mydate = strtotime ("2001-10-1"); $prevdate = strtotime ("-1 day", $mydate); // $prevdate is still 1 oct. 2001, on other dates the subtraction works fine. $mydate = strtotime ("2001-10-1"); $prevdate = strtotime ("-2 days", $mydate); // $prevdate is now at 30 sep 2001. So apparently crossing over to the month before needs some 'extra effort'.

« previous php.notes (#18292) next »