Check if time is between two time inputs.