php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48887 DateTime::sub internal parameter typos
Submitted: 2009-07-11 15:40 UTC Modified: 2009-07-13 13:08 UTC
From: tobias382 at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tobias382 at gmail dot com
New email:
PHP Version: OS:

 

 [2009-07-11 15:40 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-11 15:46 UTC] tobias382 at gmail dot com
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
 [2009-07-13 13:08 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=87825b295ee8dc0021ae3704dc38fa06c1cc28b6
Log: TypFix #48887. Typos and incorrect PYMD parameter
 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b1927224dcd2387646c410a8ca02907cbc6bdd8e
Log: Fix #48887. Typos and incorrect PYMD parameter
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 11:00:02 2026 UTC