Tempus.Slot.wrap

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

wrap(moment \\ nil, origin \\ DateTime.utc_now())

View Source

Specs

wrap(origin(), DateTime.t()) :: t()

Wraps the argument into a slot. For DateTime it’d be a single microsecond. For a Date, it would be the whole day, starting at 00:00:00.000000 and

ending at `23:59:59:999999`.

Examples

iex> Tempus.Slot.wrap(~D|2020-08-06|)
#Slot<[from: ~U[2020-08-06 00:00:00.000000Z], to: ~U[2020-08-06 23:59:59.999999Z]]>