note 69726 added to function.strtotime
| From: | horvathi at osu1 dot php dot net | Date: | Mon, 18 Sep 2006 04:02:05 +0000 |
| Subject: | note 69726 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117281@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 203.16.234.90
Probable Submitter: 59.167.41.210
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/69726
Del: integrated -- https://master.php.net/note/delete/69726/integrated
Del: useless -- https://master.php.net/note/delete/69726/useless
Del: bad code -- https://master.php.net/note/delete/69726/bad+code
Del: spam -- https://master.php.net/note/delete/69726/spam
Del: non-english -- https://master.php.net/note/delete/69726/non-english
Del: in docs -- https://master.php.net/note/delete/69726/in+docs
Del: other reasons-- https://master.php.net/note/delete/69726
Reject -- https://master.php.net/note/reject/69726
Search -- https://master.php.net/manage/user-notes.php