class Chronic::RepeaterFortnight
def this(pointer = :future)
def this(pointer = :future) super pointer = :future if pointer == :none case pointer when :future this_fortnight_start = Chronic.construct(@now.year, @now.month, @now.day, @now.hour) + RepeaterHour::HOUR_SECONDS sunday_repeater = RepeaterDayName.new(:sunday) sunday_repeater.start = @now sunday_repeater.this(:future) this_sunday_span = sunday_repeater.this(:future) this_fortnight_end = this_sunday_span.begin Span.new(this_fortnight_start, this_fortnight_end) when :past this_fortnight_end = Chronic.construct(@now.year, @now.month, @now.day, @now.hour) sunday_repeater = RepeaterDayName.new(:sunday) sunday_repeater.start = @now last_sunday_span = sunday_repeater.next(:past) this_fortnight_start = last_sunday_span.begin Span.new(this_fortnight_start, this_fortnight_end) end end