php.net |  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
Description:
------------
Should the minute identifier in the documentation be I in keeping with the time formatting standards? Otherwise the M identifier is ambiguous.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-01 07:19 UTC] aharvey@php.net
-Status: Open +Status: Wont fix
 [2010-07-01 07:19 UTC] aharvey@php.net
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] rquadling@php.net
-Status: Wont fix +Status: Bogus
 [2010-07-01 10:46 UTC] rquadling@php.net
This is not a "won't fix bug". It is not a bug at all.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 20:01:29 2024 UTC