Are PHP DateInterval comparable like DateTime?
In short, comparing of DateInterval objects is not currently supported by default (as of php 5.6). As you already know, the DateTime Objects are comparable. A way to achieve the desired result, is to subtract or add the DateInterval from a DateTime object and compare the two to determine the difference. Example: https://3v4l.org/kjJPg $buildDate = … Read more