Method: Chronic::RepeaterFortnight#offset
- Defined in:
- lib/chronic/repeaters/repeater_fortnight.rb
#offset(span, amount, pointer) ⇒ Object
58 59 60 61 |
# File 'lib/chronic/repeaters/repeater_fortnight.rb', line 58 def offset(span, amount, pointer) direction = pointer == :future ? 1 : -1 span + direction * amount * FORTNIGHT_SECONDS end |