Returns the difference between two DateTime objects - PHP The DateInterval object representing the difference between the two dates or ... object on which diff is called is subtracted from the object that is passed to diff.