Best way to use time in if statements

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

Very true.

A solution to that is to count minutes from some date in the past.

...R