infinite_times v0.3.0 InfiniteTimes.InfiniteDateRange View Source

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() View Source
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) View Source
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) View Source
new(
  %InfiniteTimes.InfDate{date: term(), finitness: term()} | nil,
  %InfiniteTimes.InfDate{date: term(), finitness: term()} | nil
) :: t()