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