note 97065 deleted from function.strtotime by danbrown

From: Date: Wed, 31 Mar 2010 16:29:49 +0000
Subject: note 97065 deleted from function.strtotime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167588@lists.php.net to get a copy of this message
Note Submitter: AdSpeed ---- strtotime is convenience but its accuracy is questionable. So don't rely on it for something critical. Today is Mar 30, 2010 and last month should be February, right? Not so. echo date(DATE_RFC822,strtotime('last month')); // show Mar 2 echo date(DATE_RFC822,strtotime('1 month ago')); // show Mar 2

« previous php.notes (#167588) next »