class Rufus::Scheduler::CronLine

def matches?(time)


Returns true if the given time matches this cron line.
def matches?(time)
  time = ZoTime.new(time.to_f, @timezone || ENV['TZ']).time
  return false unless sub_match?(time, :sec, @seconds)
  return false unless sub_match?(time, :min, @minutes)
  return false unless sub_match?(time, :hour, @hours)
  return false unless date_match?(time)
  true
end