Time range validation.