JGuizard
8/24/2016 - 6:35 AM

Python execute handler at time

Python execute handler at time

import schedule
import time

def job(t):
    print "I'm working...", t
    return

schedule.every().day.at("08:30").do(job,'It is 08:30')

while True:
    schedule.run_pending()
    time.sleep(60) # wait one minute