What I want to do in a python script is sleep a number of seconds until the required time is reached. IE: if runAt setting is 15:20 and current time is 10:20, how can I wor
Using both arrow and pause:
maintenance = arrow.now() EndAt = maintenance.replace(hour = 17, minute = 6, second = 0) print(maintenance,': Maintenance in progress. Pausing until :',EndAt) pause.until(EndAt.naive)