Method: Fugit::Cron::TimeCursor#dec_sec

Defined in:
lib/fugit/cron.rb

#dec_sec(seconds) ⇒ Object



111
112
113
114
# File 'lib/fugit/cron.rb', line 111

def dec_sec(seconds)
  target = seconds.reverse.find { |s| s < @t.sec } || seconds.last
  inc(target - @t.sec)
end