Date_Range.new
Date_Range.newstartendstep
Documentation
Create a representation of a right-exclusive range of dates. The range is increasing or decreasing, depending on if the start date is before or after the end date.
Arguments
start
: The left boundary of the range. Its value is included.end
: The right boundary of the range. Its value is excluded.step
: The step between dates. It must be positive - to construct a decreasing range, flip the start and the end or usedown_to
, but keeping the positive step.