Given the following...

[cdal...@localhost oakland]$ more basic.py
#!/usr/bin/python

import sched
import time

scheduler = sched.scheduler(time.time, time.sleep)

def print_event(name):
        print 'EVENT:', time.time(), name

print 'START:', time.time()
scheduler.enter(2, 1, print_event, ('first',))

scheduler.run()
[cdal...@localhost oakland]$ ./basic.py
START: 1240584506.06
EVENT: 1240584508.06 first
[cdal...@localhost oakland]$


How do I modify it so that it runs every hour on the hour.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to