Check if to_time < from_time.