saturn-1.0.0.0: Handle POSIX cron schedules.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Saturn.Unstable.Match

Synopsis

Documentation

isMatch :: UTCTime -> Schedule -> Bool Source #

Returns True if the given UTCTime matches the given Schedule, otherwise returns False.

nextMatch :: UTCTime -> Schedule -> Maybe UTCTime Source #

Looks for the first time after the given UTCTime that matches the given Schedule. Returns Nothing if the Schedule only matches dates that cannot happen, like February 30th.