Doc #72259 [Opn->Fbk]: DateInterval->Format page documentation incorrect
| From: | cmb@php.net | Date: | Tue, 14 Jun 2016 11:24:55 +0000 |
| Subject: | Doc #72259 [Opn->Fbk]: DateInterval->Format page documentation incorrect | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13508@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72259&edit=1
ID: 72259
Updated by: cmb@php.net
Reported by: mimiller at ncsa dot illinois dot edu
Summary: DateInterval->Format page documentation incorrect
-Status: Open
+Status: Feedback
Type: Documentation Problem
Package: Documentation problem
Operating System: MacOSX
PHP Version: 5.6.21
Block user comment: N
Private report: N
New Comment:
I can't verify the described behavior, see
<https://3v4l.org/meQFK#v550>. Do you get another
result?
Previous Comments:
------------------------------------------------------------------------
[2016-05-24 21:55:52] mimiller at ncsa dot illinois dot edu
Description:
------------
http://php.net/manual/en/dateinterval.format.php
indicates:
H Hours, numeric, at least 2 digits with leading 0 01, 03, 23
h Hours, numeric 1, 3, 23
should read:
H Hours, numeric 0 - 23, at least 2 digits with leading 0 01, 03, 23
h Hours, numeric 1 - 12, at least 2 digits with leading 0 1, 3, 12
Test script:
---------------
$this->format('H'); #returns 00 - 23
$this->format('h'); #returns 01 - 12
Expected result:
----------------
web page will document the format function properly.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72259&edit=1