recurring_events v0.1.0 RecurringEvents.Yearly
Handles :yearly
frequency rule
Summary
Functions
Returns yearly stream of dates with respect to :interval
, :count
and
:until
rules. Only year form :until
date is used, the rest of it is
ignored
Functions
Returns yearly stream of dates with respect to :interval
, :count
and
:until
rules. Only year form :until
date is used, the rest of it is
ignored.
Example
iex> RecurringEvents.Yearly.unfold(~N[2017-11-22 10:11:11],
...> %{freq: :yearly, until: ~N[2018-01-03 05:00:00]})
...> |> Enum.take(10)
[~N[2017-11-22 10:11:11], ~N[2018-11-22 10:11:11]]