I am working on a python script that should work between two given times. I have to use the sched build sched , as this script should be able to run directly on any machine with python 2.7 to reduce configuration time. (SO CRON NOT OPTION)
Several variables determine the parameters to start, here set_timer_start=0600 and set_timer_end=0900 are written in HHMM . I can stop the script at the right time.
I donβt know exactly how sched works (the python document page doesnβt make much sense to me), but as far as I understand, it works with date / time (epoch), while I only want it to start at a given time ( HHMM ).
Can someone give me an example (or link) on how to use the scheduler and possibly calculate the next execution date / time?
source share