Compares this to another date object, including times, to see
which one is greater (later). Assumes that the dates are in the
same timezone.
public compareDateTime ( mixed $other ) : integer | ||
$other | mixed | The date to compare to. |
return | integer | == 0 if they are equal >= 1 if $this is greater (later) <= -1 if $other is greater (later) |