#42786 [Opn->Csd]: Unclear paragraph in strtotime()
| From: | vrana@php.net | Date: | Wed, 21 Nov 2007 15:21:24 +0000 |
| Subject: | #42786 [Opn->Csd]: Unclear paragraph in strtotime() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-237@lists.php.net to get a copy of this message | ||
ID: 42786
Updated by: vrana@php.net
Reported By: yoavf at imagineersystems dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
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:
------------------------------------------------------------------------
[2007-09-28 10:34:50] yoavf at imagineersystems dot com
Description:
------------
The documentation for strtotime is slightly confusing/run-on...
---
The function expects to be given a string containing a US English date
format and will try to parse that format into a Unix timestamp (the
number of seconds since January 1 1970 00:00:00 GMT), relative to the
timestamp given in now, or the current time if none is supplied.
---
At first glance, the paragraph appears to imply "The function [returns]
the current time if none is supplied."
Reproduce code:
---------------
The function expects to be given a string containing a US English date
format and will try to parse that format into a Unix timestamp (the
number of seconds since January 1 1970 00:00:00 GMT), relative to the
timestamp given in now, or the current time if none is supplied.
Expected result:
----------------
The function expects to be given a string containing a US English date
format and will try to parse that format into a Unix timestamp (the
number of seconds since January 1 1970 00:00:00 GMT), relative to the
timestamp given in now, or the current time if none is supplied.
Actual result:
--------------
The function expects to be given a string containing a US English date
format and will try to parse that format into a Unix timestamp (the
number of seconds since January 1 1970 00:00:00 GMT). This is relative
to the timestamp given in $now, or the current time if $now is not
supplied/null/false.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42786&edit=1