recurring_events v0.3.0 RecurringEvents.Yearly View Source

Handles :yearly frequency rule

Link to this section 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

Link to this section 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]]