vura.cron
cron-element-parserer
(cron-element-parserer element [min- max-])
Parses CRON like element. Elements are in form
1-25/0
1,5,40/10
1,20,40
20-40/5
*/2 etc.
days-in-month
(days-in-month year month)
next-timestamp
(next-timestamp timestamp cron-string)
Return next valid timestamp after input timestamp. If there is no such timestamp,
than nil is returned.
parse-cron-string
(parse-cron-string cron-record)
Parses CRON string e.g.
"0,3,20/20 0 0 3-20/10 * * *"
If record is not valid assertion will
be thrown. Returned data is sequence
of cron-mappings that define what time
is valid to execute Job.
valid-timestamp?
(valid-timestamp? timestamp cron-string)
Given a timestamp and cron definition function returns true
if timestamp satisfies cron definition.