crontab v0.1.4 Crontab.CronScheduler

This module provides the functionality to retrieve the next run date or the previous run date from a %Crontab.CronInterval{}.

Summary

Functions

This function provides the functionality to retrieve the next run date from a %Crontab.CronInterval{}

Functions

get_next_run_date(cron_interval, date)

This function provides the functionality to retrieve the next run date from a %Crontab.CronInterval{}.

Examples

iex> Crontab.CronScheduler.get_next_run_date(%Crontab.CronInterval{}, ~N[2002-01-13 23:00:07])

iex> Crontab.CronScheduler.get_next_run_date(%Crontab.CronInterval{year: [{:/, 9}]}, ~N[2002-01-13 23:00:07])

get_next_run_date(conditions, date, max_runs)