class Rufus::Scheduler::CronLine

def matches?(time)


Returns true if the given time matches this cron line.
def matches?(time)
  time = Time.at(time) unless time.kind_of?(Time)
  time = @timezone.utc_to_local(time.getutc) if @timezone
  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