Doc #52216 [Opn->Wfx]: Interval spec duplicates the identifier for Minutes and Months (M)
| From: | aharvey@php.net | Date: | Thu, 01 Jul 2010 05:19:41 +0000 |
| Subject: | Doc #52216 [Opn->Wfx]: Interval spec duplicates the identifier for Minutes and Months (M) | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4622@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52216&edit=1
ID: 52216
Updated by: aharvey@php.net
Reported by: elliot dot a at gmail dot com
Summary: Interval spec duplicates the identifier for Minutes and
Months (M)
-Status: Open
+Status: Wont fix
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
New Comment:
The string representation for input to the DateInterval class is
actually the ISO 8601 duration specification, which is a standard far
beyond the world of PHP. Within that standard, the M is not ambiguous:
if it's before the T in the input, then it's months, if it's after, then
it's minutes (since the post-T section is the time specification).
Previous Comments:
------------------------------------------------------------------------
[2010-07-01 07:11:15] elliot dot a at gmail dot com
Description:
------------
Should the minute identifier in the documentation be I in keeping with
the time formatting standards? Otherwise the M identifier is ambiguous.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52216&edit=1