If statement on a time

Hi i want to do an if statement based on the condition between hours 16:00 GMT and 18:00 what is the cleanest way to do this?

I need the Bot to end during this window if there is no transactions left within queue

Hey J_Swali. You can use:
datetime.now.ToShortTimeString > “16:00” and datetime.now.ToShortTimeString< “18:00”


Thanks for your help

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.