Cocktail.Span.new
You're seeing just the function
new
, go back to Cocktail.Span module for more information.
Specs
new(Cocktail.time(), Cocktail.time()) :: t()
Creates a new t/0
from the given start time and end time.
Examples
iex> new(~N[2017-01-01 06:00:00], ~N[2017-01-01 10:00:00])
%Cocktail.Span{from: ~N[2017-01-01 06:00:00], until: ~N[2017-01-01 10:00:00]}