#48887 [Opn]: DateTime::sub internal parameter typos
| From: | tobias382 at gmail dot com | Date: | Sat, 11 Jul 2009 15:46:27 +0000 |
| Subject: | #48887 [Opn]: DateTime::sub internal parameter typos | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2468@lists.php.net to get a copy of this message | ||
ID: 48887
User updated by: tobias382 at gmail dot com
Reported By: tobias382 at gmail dot com
Status: Open
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Patch for phpdoc/en/trunk/reference/datetime/datetime/sub.xml:
44,45c44,45
< "T3H", "T3M", "T3S" or or a combination of the three e.g.
"T5H20M" (H =
< Hours, M = Minutes, S = Seconds). For dateTime us
"P5D2M4YT5H20M". The
---
> "T3H", "T3M", "T3S" or a combination of the three e.g.
"T5H20M" (H =
> Hours, M = Minutes, S = Seconds). For dateTime use
"P5Y2M4DT5H20M". The
Previous Comments:
------------------------------------------------------------------------
[2009-07-11 15:40:04] tobias382 at gmail dot com
Description:
------------
The description of the interval parameter for the DateTime::sub()
method has an extra "or," a usage of "us" instead of "use," and an
example of formatting a datetime interval where the year and day are
reversed that conflicts with the earlier statement within that
parameter's description that a year-month-day order is required.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48887&edit=1