Python3 event scheduling, with catchup
Which python3 module is most appropriate for scheduling a variable to be True during a certain time interval and False the rest of the time?
Additionally, I am also looking for capabilities to come up with the right value even if the program is started after one of the changeovers.
For example, I could use cron to set True at 13:00 UTC and False at 14:30 UTC but with cron if I start the program at 13:01 UTC, nothing would happen to set True until the next day at 13:00 UTC. I need it to figure out that if the program is fired up during the designated time interval, it should set the appropriate True or False value.
Perhaps there is some well documented solution, since it seems like it might be a common problem.
|