Best way to use time in if statements

A possible issue with time-since-midnight arises when the start and end times are on different days.

Just be sure that your approach doesn't try to measure an interval by subtracting one time-since-midnight from another, when the values are on different days.