ExCron v0.0.3
ExCron
Ex-Cron is a library for generating scheduled dates based on a given
cron pattern.
Summary
Gets the date and time of the next instance of a cron schedule after the
specified date and time
Gets the date and time of all instances of a cron schedule between the
given dates and times
Functions
Gets the date and time of the next instance of a cron schedule after the
specified date and time.
Examples
iex> ExCron.next "* * * * *", {{2016, 5, 10},{22, 13, 13}}
{{2016, 5, 10}, {22, 14, 0}}
iex> ExCron.next "5 20 * DEC MON-WED", {{2016, 5, 10},{22, 13, 13}}
{{2016, 12, 5}, {20, 5, 0}}
Gets the date and time of all instances of a cron schedule between the
given dates and times.
Examples
iex> ExCron.within "* * * * *", {{2016, 5, 10},{22, 13, 13}}, {{2016, 5, 10},{22, 15, 13}}
[{{2016, 5, 10}, {22, 14, 0}}, {{2016, 5, 10}, {22, 15, 0}},]