|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52216 Interval spec duplicates the identifier for Minutes and Months (M)
Submitted: 2010-07-01 07:11 UTC Modified: 2010-07-01 10:46 UTC
From: elliot dot a at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2010-07-01 07:11 UTC] elliot dot a at gmail dot com
Should the minute identifier in the documentation be I in keeping with the time formatting standards? Otherwise the M identifier is ambiguous.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-01 07:19 UTC]
-Status: Open +Status: Wont fix
 [2010-07-01 07:19 UTC]
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).
 [2010-07-01 10:46 UTC]
-Status: Wont fix +Status: Bogus
 [2010-07-01 10:46 UTC]
This is not a "won't fix bug". It is not a bug at all.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Aug 01 15:01:24 2021 UTC