Tempus.Slot.intersect

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

Specs

intersect(slots :: Enum.t()) :: t() | nil

Intersects slots to the minimal covered timeslice.

Example

iex> Tempus.Slot.intersect([Tempus.Slot.wrap(~D|2020-09-30|),
...>   %Tempus.Slot{from: ~U|2020-09-30 23:00:00Z|, to: ~U|2020-10-02 00:00:00Z|}])
#Slot<[from: ~U[2020-09-30 23:00:00Z], to: ~U[2020-09-30 23:59:59.999999Z]]>