recurring_events v0.3.0 RecurringEvents.Frequency View Source
Handles :frequency
frequency rule
Link to this section Summary
Functions
Returns frequency stream of dates with respect to :interval
, :count
and
:until
rules
Link to this section Functions
Returns frequency stream of dates with respect to :interval
, :count
and
:until
rules.
Example
iex> RecurringEvents.Frequency.unfold(~N[2017-01-22 10:11:11],
...> %{freq: :daily, until: ~N[2017-01-23 15:00:00]})
...> |> Enum.take(10)
[~N[2017-01-22 10:11:11], ~N[2017-01-23 10:11:11]]