ExCycle.Validations.Days (ex_cycle v0.3.0)
Days defines a list of day (day in the week, like monday, tuesday ...) to use in the generated time.
Examples
iex> %Days{days: [:monday]}
# will generate datetimes every monday
iex> %Days{days_by_week: [{-1, :monday}, {2, :saturday}]}
# will generate datetimes every last monday and every second saturday of the month
iex> %Days{days: [:monday], days_by_week: [{1, :tuesday}]}
# Will generate datetimes every monday and every first tuesday of the month
Summary
Types
Link to this type
day()
@type day() ::
:monday | :tuesday | :wednesday | :thursday | :friday | :saturday | :sunday
Link to this type
week()
@type week() :: integer()
Functions
Link to this function