diff options
author | Joey Hess <joey@kitenet.net> | 2013-10-07 23:02:47 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-10-07 23:13:30 -0400 |
commit | 38d043ec1ad2aa100c46b98c298163a9d3753ee1 (patch) | |
tree | db3aeeff1f8761000853cbe03f78cdc5c8942782 /git-annex.hs | |
parent | 1e5ed2e58e5d4c2a9caeb4e3676b33c70f60e714 (diff) |
calculating the next time on a Schedule
Wow! This was hairy, but about 10x less hairy than expected actually!
A bit more recursion than I really like, since I think in theory all
of this date stuff can be calulated using some formulas I am too lazy too
look up. But this doesn't matter in practice; I asked it for
nextTime (Schedule (Divisible 100 (Yearly 7)) (SpecificTime 23 59) (MinutesDuration 10)) Nothing
.. and it calculated (NextTimeExactly 2100-01-07 23:59:00) in milliseconds.
Diffstat (limited to 'git-annex.hs')
0 files changed, 0 insertions, 0 deletions