Compare time values