crontab v0.1.4 Crontab.CronInterval

This is the Crontab.CronInterval module / struct.

Summary

Functions

Defines the Cron Interval

Convert Crontab.CronInterval struct to Tuple List

Functions

__struct__()

Defines the Cron Interval

* * * * * *

| | | | | |

| | | | | +— :year Year (range: 1900-3000)

| | | | +—— :weekday Day of the Week (range: 1-7, 1 standing for Monday)

| | | +——— :month Month of the Year (range: 1-12)

| | +———— :day Day of the Month (range: 1-31)

| +————— :hour Hour (range: 0-23)

+—————— :minute Minute (range: 0-59)

to_condition_list(cron_interval)

Convert Crontab.CronInterval struct to Tuple List

Examples

iex> Crontab.CronInterval.to_condition_list %Crontab.CronInterval{minute: [1], hour: [2], day: [3], month: [4], weekday: [5], year: [6]} [ {:minute, [1]},

{:hour, [2]},
{:day, [3]},
{:month, [4]},
{:weekday, [5]},
{:year, [6]}]