Method: TimeCalc#for

Defined in:
lib/time_calc.rb

#for(span, unit) ⇒ Sequence

Produces Sequence from this value to ‘this + <span units>`

Examples:

TimeCalc.(Time.parse('2019-06-01 14:50')).for(2, :weeks).step(1, :day).count
# => 15

Parameters:

  • span (Integer)
  • unit (Symbol)

Returns:



# File 'lib/time_calc.rb', line 261