Per Malmberg
70f55b8ce6
#1 - Randomization WiP.
2019-03-14 17:09:25 +01:00
Per Malmberg
6ed4bc3b2e
#1 Some small code cleanups.
2019-03-13 10:28:29 +01:00
Per Malmberg
c20a146980
#1 - Moved files into new structure for more modern CMake usage.
2019-03-13 10:20:21 +01:00
Per Malmberg
4a4cbd47aa
Disable warning in date.h
2019-02-12 09:05:41 +01:00
Per Malmberg
448d01eef0
Updated to date.h v2.4.1
2019-02-11 08:53:59 +01:00
Per Malmberg
a5201b58ce
Added negative test case.
2018-06-20 11:18:06 +02:00
Per Malmberg
0436cda4ef
Simplified handling of clock changes
2018-05-22 21:45:00 +02:00
Per Malmberg
efeb1e4769
Fixed problem where multiple ticks within the same second causes task to expire multiple times that second.
2018-05-16 16:48:51 +02:00
Per Malmberg
392948cdee
Compile on Linux again.
2018-03-25 10:22:33 +02:00
Per Malmberg
c441da4287
Added UTC handling for Windows
2018-03-22 22:38:55 +01:00
Per Malmberg
5395c75061
More tests
2018-03-13 02:41:24 -07:00
Per Malmberg
35a35d99e9
Handles jumps backwards backwards >3h
2018-03-13 02:37:31 -07:00
Per Malmberg
97a0a5a9c2
Handles jumps of >=3h
2018-03-13 01:23:50 -07:00
Per Malmberg
e99b049d2b
Work on DST handling.
2018-03-13 00:46:03 +01:00
Per Malmberg
5d60fa7133
Don't move() in returns.
2018-03-12 00:43:44 -07:00
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
582d0c4369
date.h as git submodule.
2018-03-11 20:24:55 +01:00
Per Malmberg
74e1ad4d60
Added the concept of a clock to Cron.
2018-03-11 20:09:06 +01:00
Per Malmberg
be2b4424a1
Added note about UTC.
2018-03-11 19:07:35 +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
9d7134c527
clang-tidy
2018-03-11 15:28:51 +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
Per Malmberg
20667ae3c6
More tests.
...
Fix for february.
Limit iterations in calculate_from.
2018-03-10 21:01:20 +01:00
Per Malmberg
cb6a7958e8
Validation of days vs. months with more tests.
2018-03-10 00:39:04 +01:00
Per Malmberg
f7442f6972
More tests, seems to be working. Still needs to handle non-existent dates.
2018-03-09 23:51:13 +01:00
Per Malmberg
74800b0d5e
Test case added.
2018-03-09 08:26:57 -08:00
Per Malmberg
22da55666a
Part of calculation
2018-03-09 07:35:11 -08:00
Per Malmberg
a6dd20d150
Change name of class and update API.
...
Add Howard Hinnats's date library.
2018-03-09 01:17:46 -08:00
Per Malmberg
d19de56b4f
Don't need to pass the offset, it can be derived from T::First.
2018-03-08 23:44:12 -08:00
Per Malmberg
c74c4b8c3c
No need to run both validate_numeric and validate_literal.
2018-03-08 23:38:18 -08:00
Per Malmberg
40b418942f
Added support for step-syntax.
2018-03-08 14:53:29 -08:00
Per Malmberg
2071035acf
Begun implementation.
2018-03-08 14:21:26 -08:00
Per Malmberg
24cfe15a79
Initial commit
2018-03-08 23:09:11 +01:00