Check if time is between two time inputs.

Thanks, but doesn't that also have issues?

No, that statement is fine, especially if you use unix time instead of day times.

YOU have to deal with the special cases, which would obviously require a different, but also simple comparison.