Doc #53706 [Asn->Csd]: Misleading example on datediff format page
| From: | aharvey@php.net | Date: | Wed, 12 Jan 2011 03:54:37 +0000 |
| Subject: | Doc #53706 [Asn->Csd]: Misleading example on datediff format page | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5782@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53706&edit=1
ID: 53706
Updated by: aharvey@php.net
Reported by: php at olliebuck dot com
Summary: Misleading example on datediff format page
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: 5.3.5
Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2011-01-12 04:54:33] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=307395
Log: Fix doc bug #53706 (Misleading example on datediff format page).
------------------------------------------------------------------------
[2011-01-10 11:44:16] php at olliebuck dot com
Description:
------------
---
From manual page: http://www.php.net/datetime.diff#See Also
---
The example on this page http://php.net/manual/en/datetime.diff.php
suggests using '%d' to determine the number of days between 2 dates
It would be clearer if it either used %a, or included %m in the example,
if the dates you are comparing are more than a month apart %d is not
what it initially appears to be in the documentation.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53706&edit=1