6 Commits

Author SHA1 Message Date
Per Malmberg
47a615897a Initial thought about handling clock changes: Follow RedHat's implementation at https://access.redhat.com/solutions/477963
If time moves >=3h, then consider it a adjustment and reschedule based on the new time.
If time changes backwards <3h, prevent running tasks twice.
If forward <3h run tasks that would have run in the skipped time.
2018-03-12 00:08:20 +01:00
Per Malmberg
9f7c5dc2fa Added LocalClock. 2018-03-11 23:38:12 +01:00
Per Malmberg
74e1ad4d60 Added the concept of a clock to Cron. 2018-03-11 20:09:06 +01:00
Per Malmberg
d7c17be4d1 Updated README.
Added tests.
Made use of ? mandatory for DoM/DoW.
2018-03-11 18:45:27 +01:00
Per Malmberg
d2ec26f494 Moce functionality in main Cron class with added tests. 2018-03-11 15:26:26 +01:00
Per Malmberg
0db05ac71b Functionality in main Cron class. 2018-03-10 23:42:00 +01:00