View Source Plox.DateScale (Plox v0.2.1)
A scale for elixir Date values
This struct implements the Plox.Scale protocol.
Summary
Functions
Creates a new Plox.DateScale struct
Types
@type t() :: %Plox.DateScale{range: term()}
Functions
@spec new(range :: Date.Range.t()) :: t()
Creates a new Plox.DateScale struct
Accepts an elixir Date.Range struct. The range must contain at least two
dates. The step is ignored. Supports forward and backward ranges.