class Rufus::CronLine
def self.monthday(date)
def self.monthday(date) count = 1 date2 = date.dup loop do date2 = date2 - DAY_IN_SECONDS break if date2.month != date.month count = count + 1 end "#{WEEKDAYS[date.wday]}##{count}" end
def self.monthday(date) count = 1 date2 = date.dup loop do date2 = date2 - DAY_IN_SECONDS break if date2.month != date.month count = count + 1 end "#{WEEKDAYS[date.wday]}##{count}" end