Tempus.Slot.duration
You're seeing just the function
duration
, go back to Tempus.Slot module for more information.
Specs
duration(slot :: t(), unit :: System.time_unit()) :: non_neg_integer() | :infinity
Calculates the duration of a slot in units given as a second parameter
(default: :second
.)
Example
iex> ~D|2020-09-03| |> Tempus.Slot.wrap() |> Tempus.Slot.duration()
86400