crontab v0.8.0 Crontab.ExtendedCronInterval

This is the Crontab.ExtendedCronInterval module / struct.

Summary

Functions

Defines the Cron Interval

Convert Crontab.ExtendedCronInterval struct to Tuple List

Types

all_t()
all_t ::
  %Crontab.ExtendedCronInterval{day: term, hour: term, minute: term, month: term, second: term, weekday: term, year: term} |
  Crontab.CronInterval.t
condition()
condition() :: {interval, [Crontab.CronInterval.value]}
condition_list()
condition_list() :: [condition]
interval()
interval() :: :second | Crontab.CronInterval.interval
t()
t() :: %Crontab.ExtendedCronInterval{day: term, hour: term, minute: term, month: term, second: term, weekday: term, year: term}

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)
+-------------- :second Second             (range: 0-59)
to_condition_list(extended_cron_interval)
to_condition_list(t) :: condition_list

Convert Crontab.ExtendedCronInterval struct to Tuple List

Examples

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