crontab v0.5.2 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
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])
{:ok, ~N[2002-01-13 23:00:00]}
iex> Crontab.CronScheduler.get_next_run_date(%Crontab.CronInterval{year: [{:/, :*, 9}]}, ~N[2002-01-13 23:00:07])
{:ok, ~N[2007-01-01 00:00:00]}