How to use time in a format suitable for if-then-else testing

For anyone following along I replied to his post in the other thread but I’ll re-post here for continuity: