Crono.Expression (crono v0.1.0)
A parsed cron expression.
Summary
Functions
Sigil to parse an input and create a Crono.Expression
.
Types
@type t() :: %Crono.Expression{ day: value(pos_integer()), hour: value(non_neg_integer()), minute: value(non_neg_integer()), month: value(pos_integer()), weekday: value(non_neg_integer()) }
Link to this type
value(inner_type)
@type value(inner_type) :: :* | inner_type | [{:step, {inner_type, pos_integer()}}] | [{:range, {inner_type, inner_type}}] | [{:list, [inner_type]}]
Functions
Link to this function
sigil_e(input, opts)
Sigil to parse an input and create a Crono.Expression
.
Examples
iex> ~e[*/15 * * * *]
%Crono.Expression{minute: [step: {:*, 15}], hour: :*, day: :*, month: :*, weekday: :*}