Tempus.Slots.wrap
You're seeing just the function
wrap
, go back to Tempus.Slots module for more information.
Specs
wrap(Tempus.Slot.t()) :: t()
Wraps the argument into a slots instance. For nil
it’d be an empty slots.
For everything else it’d call Slot.wrap/1
on an argument and add it to empty slots.
Examples
iex> Tempus.Slots.wrap(~D|2020-08-06|)
#Slots<[#Slot<[from: ~U[2020-08-06 00:00:00.000000Z], to: ~U[2020-08-06 23:59:59.999999Z]]>]>