Doc #53706 [Opn->Asn]: Misleading example on datediff format page

From: Date: Wed, 12 Jan 2011 03:52:24 +0000
Subject: Doc #53706 [Opn->Asn]: Misleading example on datediff format page
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5781@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: Open +Status: Assigned Type: Documentation Problem Package: Documentation problem PHP Version: 5.3.5 -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#5781) next »