View Source ExCycle.Span (ex_cycle v0.8.2)
Span is used to generate datetime with a Rule that contain a Duration.
When a duration is specified, we must have a from and a to for every generated datetimes.
Summary
Types
@type t() :: %ExCycle.Span{from: NaiveDateTime.t(), to: NaiveDateTime.t()}
Functions
@spec new(NaiveDateTime.t(), Duration.t()) :: t()