Python - Iniciar uma função no momento determinado
Como posso executar uma função emPython, em um dado instante?
Por exemplo:
run_it_at(func, '2012-07-17 15:50:00')
e vai rodar a funçãofunc
em 2012-07-17 15:50:00.
Eu tentei osched.scheduler, mas não começou minha função.
import time as time_module
scheduler = sched.scheduler(time_module.time, time_module.sleep)
t = time_module.strptime('2012-07-17 15:50:00', '%Y-%m-%d %H:%M:%S')
t = time_module.mktime(t)
scheduler_e = scheduler.enterabs(t, 1, self.update, ())
O que eu posso fazer?