|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-08-28 11:45 UTC] requinix@php.net
-Summary: DateInterval comparsion wrong
+Summary: Support comparing DateInterval objects
-Type: Bug
+Type: Feature/Change Request
[2015-08-28 11:45 UTC] requinix@php.net
[2015-09-10 13:54 UTC] john_zuk at wp dot pl
[2015-09-10 19:52 UTC] requinix@php.net
[2016-05-16 12:11 UTC] php dot net at anthonychambers dot co dot uk
[2017-03-24 06:37 UTC] requinix@php.net
-Status: Open
+Status: Duplicate
[2017-03-24 06:37 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 21:00:01 2025 UTC |
Description: ------------ Wrong DateInterval comparsion result Test script: --------------- $a = new DateTime('1981-10-10'); $b = new DateTime('1980-10-01'); $m = new DateInterval('P1M'); var_dump($a->diff($b) > $m); //bool(false)