class Chronic::RepeaterDayPortion
def next(pointer)
def next(pointer) super full_day = 60 * 60 * 24 if !@current_span now_seconds = @now - Chronic.construct(@now.year, @now.month, @now.day) if now_seconds < @range.begin case pointer when :future range_start = Chronic.construct(@now.year, @now.month, @now.day) + @range.begin when :past range_start = Chronic.construct(@now.year, @now.month, @now.day) - full_day + @range.begin end elsif now_seconds > @range.end case pointer when :future range_start = Chronic.construct(@now.year, @now.month, @now.day) + full_day + @range.begin when :past range_start = Chronic.construct(@now.year, @now.month, @now.day) + @range.begin end else case pointer when :future range_start = Chronic.construct(@now.year, @now.month, @now.day) + full_day + @range.begin when :past range_start = Chronic.construct(@now.year, @now.month, @now.day) - full_day + @range.begin end end @current_span = Span.new(range_start, range_start + (@range.end - @range.begin)) else case pointer when :future @current_span += full_day when :past @current_span -= full_day end end end