Tempus.days_ahead

You're seeing just the function days_ahead, go back to Tempus module for more information.
Link to this function

days_ahead(slots, origin, count)

View Source
This function is deprecated. Use days_add/2 instead.

Specs

days_ahead(slots :: Tempus.Slots.t(), origin :: Date.t(), count :: integer()) ::
  Date.t()

Returns the reversed list of free days after origin.

Examples

iex> slots = [
...>   Tempus.Slot.wrap(~D|2020-08-07|),
...>   Tempus.Slot.wrap(~D|2020-08-10|)
...> ] |> Enum.into(%Tempus.Slots{})
iex> Tempus.days_ahead(slots, ~D|2020-08-07|, 0)
[~D|2020-08-08|]
iex> Tempus.days_ahead(slots, ~D|2020-08-07|, 3) |> hd()
~D|2020-08-12|