class Rufus::CronLine

def matches? (time)


worth checking seconds and minutes)
(the precision is passed as well to determine if it's

Returns true if the given time matches this cron line.
def matches? (time)
#def matches? (time, precision)
  time = Time.at(time) unless time.kind_of?(Time)
  return false \
    if no_match?(time.sec, @seconds)
    #if precision <= 1 and no_match?(time.sec, @seconds)
  return false \
    if no_match?(time.min, @minutes)
    #if precision <= 60 and no_match?(time.min, @minutes)
  return false \
    if no_match?(time.hour, @hours)
  return false \
    if no_match?(time.day, @days)
  return false \
    if no_match?(time.month, @months)
  return false \
    if no_match?(time.wday, @weekdays)
  true
end