note 69726 deleted from function.strtotime by bobby

From: Date: Mon, 18 Sep 2006 14:33:12 +0000
Subject: note 69726 deleted from function.strtotime by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-117292@lists.php.net to get a copy of this message
Note Submitter: horvathi ---- re adrian and my last take on the matter. I don't know where it's documented, but it's still wrong documented or not. It does not work in a human way with dates, that's the problem with it. Let's take a quick look at what mysql does: SELECT '2005-03-31' - INTERVAL 1 MONTH ; And voila, you get 2005-02-28 and that's one month back from the given date in a human calendar, not 2005-03-01 what you get from the similar function in PHP. I can accept that this is very strange in math thinking but this is the normal expected operation for a human. Therefore it's a bug IMHO.

« previous php.notes (#117292) next »