The compare() method returns -1, 0, or 1 indicating if the first time is before, equal to, or later than the second.