engines/adva_newsletter/vendor/gems/cronedit-0.3.0/lib/cronedit.rb
# Original author of parsing: gotoken@notwork.org
Original author of parsing: gotoken@notwork.org
Original author of parsing : gotoken@notwork . org
def parse_timedate str, aDefHash = {}
            minute, hour, day_of_month, month, day_of_week = 
                str.scan(/^(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/).shift
            day_of_week = day_of_week.downcase.gsub(/#{WDAY.join("|")}/){
                WDAY.index($&)
            }
            aDefHash[:minute] = parse_field(minute,       0, 59)
            aDefHash[:hour] =  parse_field(hour,         0, 23)
            aDefHash[:day] =    parse_field(day_of_month, 1, 31)
            aDefHash[:month] =    parse_field(month,        1, 12)
            aDefHash[:weekday] =    parse_field(day_of_week,  0, 6)
            aDefHash
        end
def parse_timedate str , aDefHash = { } minute , hour , day_of_month , month , day_of_week = str . scan ( / ^( \S +) \s +( \S +) \s +( \S +) \s +( \S +) \s +( \S +) / ) . shift day_of_week = day_of_week . downcase . gsub ( / #{ WDAY . join ( "|" ) } / ) { WDAY . index ( $& ) } aDefHash [ :minute ] = parse_field ( minute , 0 , 59 ) aDefHash [ :hour ] = parse_field ( hour , 0 , 23 ) aDefHash [ :day ] = parse_field ( day_of_month , 1 , 31 ) aDefHash [ :month ] = parse_field ( month , 1 , 12 ) aDefHash [ :weekday ] = parse_field ( day_of_week , 0 , 6 ) aDefHash end
Original author of parsing: gotoken@notwork.org
Original author of parsing : gotoken@notwork . org
str
aDefHash