Checking the time of day before running?

I have a shortcut thtat I want to wrap in a if clause so that it runs only if the current local time is later than 1700 (5pm) (and oes something else if it is earlier.

I think I knew how to do this at one point, but looking at my various automation I don’t see anything that does this and the travel time shortcut isn’t helping me. Maybe something like getting the end of the current day and subtracting the current date? But how do I get the end of the current day?

If it helps or makes a difference, I will be using this only on iOS 13.

Something like this should do it:

1 Like