ExCycle.Span (ex_cycle v0.3.0)
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
Link to this function
new(from, duration)
@spec new(NaiveDateTime.t(), Duration.t()) :: t()