in reply to Check Time between 2 other times

What are you if..elsif attempts? There are two cases -- one where start<=end and the other where end<start (the "overnight" window, where 10pm is before 4am). Here is pseudocode for an if ladder:
# WARNING -- it's left to the reader to properly compare the values (c +an't do '01:40' < '01:30') if start <= end return 1 if start <= t and t <= end else # end < start return 1 if ( start <= t and t <= 23:59 ) or ( 00:00 <= t and t <= +end ) endif