Doc #53249 [NEW]: No documentation about comparison between two Datetime objects

From: Date: Sun, 07 Nov 2010 03:24:28 +0000
Subject: Doc #53249 [NEW]: No documentation about comparison between two Datetime objects
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5483@lists.php.net to get a copy of this message
From: Operating system: - PHP version: 5.3.3 Package: Date/time related Bug Type: Documentation Problem Bug description:No documentation about comparison between two Datetime objects 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 bug report at http://bugs.php.net/bug.php?id=53249&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53249&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53249&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53249&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53249&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53249&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53249&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53249&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53249&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53249&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53249&r=support Expected behavior: http://bugs.php.net/fix.php?id=53249&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53249&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53249&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53249&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53249&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53249&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53249&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53249&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53249&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53249&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53249&r=mysqlcfg

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