Method: TimeMath::Units::Base#decrease
- Defined in:
- lib/time_math/units/base.rb
#decrease(tm, amount = 1) ⇒ Time, ...
Decreases tm by given amount of unit.
153 154 155 156 157 |
# File 'lib/time_math/units/base.rb', line 153 def decrease(tm, amount = 1) return advance(tm, -amount) if amount < 0 _decrease(tm, amount) end |