infinite_times v0.0.1 InfiniteTimes.InfiniteDateRange

Date range type supporting infinte bounds, with exclusive upper bound.

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %InfiniteTimes.InfiniteDateRange{
  lower: %InfiniteTimes.InfDate{date: term(), finitness: term()},
  upper: %InfiniteTimes.InfDate{date: term(), finitness: term()}
}

Link to this section Functions

Link to this function includes?(range, date)
includes?(
  t(),
  %InfiniteTimes.InfDate{date: term(), finitness: term()}
  | %Date{calendar: term(), day: term(), month: term(), year: term()}
) :: boolean()
Link to this function new(lower, upper)
new(
  %InfiniteTimes.InfDate{date: term(), finitness: term()} | nil,
  %InfiniteTimes.InfDate{date: term(), finitness: term()} | nil
) :: t()