Skip to content

Simple, threaded python scheduler using only the standard library.

Notifications You must be signed in to change notification settings

shadetree01010100/DailyTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Create a repeating, alternating 24-hour timer in only four lines:

timer = DailyTimer(callback)
next_on = timer.set_on(0, 0)
next_off = timer.set_off(23, 59)
timer.run()
# timer.cancel()

callback(<True|False>) will be called at the times scheduled every day (affected by local daylight savings time settings). Rescheduling while running will take effect on the following cycle; to avoid this behavior call cancel().

About

Simple, threaded python scheduler using only the standard library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages