Doc #53249 [Opn->Csd]: No documentation about comparison between two Datetime objects
| From: | frozenfire@php.net | Date: | Sun, 07 Nov 2010 05:19:32 +0000 |
| Subject: | Doc #53249 [Opn->Csd]: No documentation about comparison between two Datetime objects | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5487@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53249&edit=1
ID: 53249
Updated by: frozenfire@php.net
Reported by: for-bugs at hnw dot jp
Summary: No documentation about comparison between two
Datetime objects
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Date/time related
Operating System: -
PHP Version: 5.3.3
-Assigned To:
+Assigned To: frozenfire
Block user comment: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-11-07 06:19:13] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=305145
Log: Added example of using comparison operators to compare DateTime
objects, as per bug #53249.
------------------------------------------------------------------------
[2010-11-07 04:24:27] for-bugs at hnw dot jp
Description:
------------
Comparison between two Datetime objects works fine in PHP5.2.2-PHP5.3.x,
but it seems that there is no documentation.
In #40691, behavior of == operator with DateTime was discussed and it
was fixed in PHP 5.2.2. However, <, <=, > and >= operator was also
provided by this fix.
I think these comparison is very useful, so it should be described as
specifications.
See also:
http://stackoverflow.com/questions/961074/how-do-i-compare-two-datetime-objects-in-php-5-2-8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53249&edit=1