#33013 [WFx]: strtotime - 'next month' doesn't work.
| From: | derick@php.net | Date: | Thu, 19 May 2005 19:04:13 +0000 |
| Subject: | #33013 [WFx]: strtotime - 'next month' doesn't work. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79225@lists.php.net to get a copy of this message | ||
ID: 33013
Updated by: derick@php.net
Reported By: nick at netdupe dot com
Status: Wont fix
Bug Type: Feature/Change Request
Operating System: Mac OS X 10.4
PHP Version: 5.0.4
New Comment:
Actually, the new parser that I wrote can handle this just fine... so,
shall we make next 2 or 1 (in PHP 5.1)?
Previous Comments:
------------------------------------------------------------------------
[2005-05-19 21:01:04] derick@php.net
I also know the rationale - without "next" linking to 2, there would be
no way to represent "2" as "second" already means something else (the
time unit). So I think we should not change it back to "1".
------------------------------------------------------------------------
[2005-05-16 13:45:56] mgf@php.net
The change was due to bug report http://bugs.php.net/bug.php?id=18655.
It looks like the GNU spec has changed, since at that time we all
agreed it said "next" was equivalent to 2 -- I even quoted the relevant
section in my contribution to the discussion. It's more intuitive if
"next" is equivalent to 1, so I guess it would be reasonable to change
back, just as long as the various changes are sufficiently documented!
;)
------------------------------------------------------------------------
[2005-05-13 03:01:39] rasmus@php.net
I made this change a while back, but I don't recall the reasoning now.
The GNU page on this clearly states that next=1
http://www.gnu.org/software/tar/manual/html_chapter/tar_7.html
Derick, do you remember what the logic for this was?
------------------------------------------------------------------------
[2005-05-13 01:24:42] nick at netdupe dot com
Well I guess this should be a feature change report, because
anyone with some common sense would conclude that "next month"
would mean June, not July. Do you go saying "I am going to be
going on holiday first month"
------------------------------------------------------------------------
[2005-05-12 22:40:01] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
first means +1
next means +2
second means +2
... so either use "first month" or "+1 month". No bug here.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/33013
--
Edit this bug report at http://bugs.php.net/?id=33013&edit=1