Doc #72259 [NEW]: DateInterval->Format page documentation incorrect
| From: | mimiller at ncsa dot illinois dot edu | Date: | Tue, 24 May 2016 21:55:54 +0000 |
| Subject: | Doc #72259 [NEW]: DateInterval->Format page documentation incorrect | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-13466@lists.php.net to get a copy of this message | ||
From: mimiller at ncsa dot illinois dot edu
Operating system: MacOSX
PHP version: 5.6.21
Package: Documentation problem
Bug Type: Documentation Problem
Bug description: DateInterval->Format page documentation incorrect
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 bug report at https://bugs.php.net/bug.php?id=72259&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72259&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72259&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72259&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72259&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72259&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72259&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72259&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72259&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72259&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72259&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72259&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72259&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72259&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72259&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72259&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72259&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72259&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72259&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72259&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72259&r=mysqlcfg