src/parse/cron.js
function parse(item, s, name, min, max, offset) {
    var value,
        split,
        schedules = s.schedules,
        curSched = schedules[schedules.length-1];

    // L just means min - 1 (this also makes it work for any field)
    if (item === 'L') {
      item = min - 1;
    }

    // parse x
    if ((value = getValue(item, offset, max)) !== null) {
      add(curSched, name, value, value);
    }
    // parse xW
    else if ((value = getValue(item.replace('W', ''), offset, max)) !== null) {
      addWeekday(s, curSched, value);
    }
    // parse xL
    else if ((value = getValue(item.replace('L', ''), offset, max)) !== null) {
      addHash(schedules, curSched, value, min-1);
    }
    // parse x#y
    else if ((split = item.split('#')).length === 2) {
      value = getValue(split[0], offset, max);
      addHash(schedules, curSched, value, getValue(split[1]));
    }
    // parse x-y or x-y/z or */z or 0/z
    else {
      addRange(item, curSched, name, min, max, offset);
    }
  }
function parse(item, s, name, min, max, offset) {
    var value,
        split,
        schedules = s.schedules,
        curSched = schedules[schedules.length-1];

    // L just means min - 1 (this also makes it work for any field)
    if (item === 'L') {
      item = min - 1;
    }

    // parse x
    if ((value = getValue(item, offset, max)) !== null) {
      add(curSched, name, value, value);
    }
    // parse xW
    else if ((value = getValue(item.replace('W', ''), offset, max)) !== null) {
      addWeekday(s, curSched, value);
    }
    // parse xL
    else if ((value = getValue(item.replace('L', ''), offset, max)) !== null) {
      addHash(schedules, curSched, value, min-1);
    }
    // parse x#y
    else if ((split = item.split('#')).length === 2) {
      value = getValue(split[0], offset, max);
      addHash(schedules, curSched, value, getValue(split[1]));
    }
    // parse x-y or x-y/z or */z or 0/z
    else {
      addRange(item, curSched, name, min, max, offset);
    }
  }
function parse ( item , s , name , min , max , offset ) { var value , split , schedules = s . schedules , curSched = schedules [ schedules . length - 1 ] ; // L just means min - 1 (this also makes it work for any field) if ( item === 'L' ) { item = min - 1 ; } // parse x if ( ( value = getValue ( item , offset , max ) ) !== null ) { add ( curSched , name , value , value ) ; } // parse xW else if ( ( value = getValue ( item . replace ( 'W' , '' ) , offset , max ) ) !== null ) { addWeekday ( s , curSched , value ) ; } // parse xL else if ( ( value = getValue ( item . replace ( 'L' , '' ) , offset , max ) ) !== null ) { addHash ( schedules , curSched , value , min - 1 ) ; } // parse x#y else if ( ( split = item . split ( '#' ) ) . length === 2 ) { value = getValue ( split [ 0 ] , offset , max ) ; addHash ( schedules , curSched , value , getValue ( split [ 1 ] ) ) ; } // parse x-y or x-y/z or */z or 0/z else { addRange ( item , curSched , name , min , max , offset ) ; } }
Parses a particular item within a cron expression.

@param {String} item: The cron expression item to parse
@param {Schedule} s: The existing set of schedules
@param {String} name: The name to use for this constraint
@param {Int} min: The min value for the constraint
@param {Int} max: The max value for the constraint
@param {Int} offset: The offset to apply to the cron value
Parses a particular item within a cron expression .