I have a Python script that executes every minute on my Raspberry Pi. What I want to do now is that this infinite loop that repeats itself every minute, starts at an specific date that I can control, let's say in a month or on July 17th, whatever date I set. I have seen how to get today's date, but not to run something on an specific day and time.
This is the code that I have:
import schedule import time def job(): #HERE IS WHERE I WRITE THE TASK schedule.every(1).minutes.do(job) while 1: schedule.run_pending() time.sleep(1)
What do you guys suggest?