rem: var incrementDate = function(date) { switch(p._unit) { case Timeline.MILLISECOND: date.setTime(date.getTime() + 1) break; case Timeline.SECOND: date.setTime(date.getTime() + 1000); break; case Timeline.MINUTE: date.setTime(date.getTime() + Timeline.GregorianUnitLengths[Timeline.MINUTE]); break; case Timeline.HOUR: date.setTime(date.getTime() + Timeline.GregorianUnitLengths[Timeline.HOUR]); break; case Timeline.DAY: date.setDate(date.getDate() + 1); break; case Timeline.WEEK: date.setDate(date.getDate() + 7); break; case Timeline.MONTH: date.setMonth(date.getMonth() + 1); break; case Timeline.YEAR: date.setFullYear(date.getFullYear() + 1); break; case Timeline.DECADE: date.setFullYear(date.getFullYear() + 10); break; case Timeline.CENTURY: date.setFullYear(date.getFullYear() + 100); break; case Timeline.MILLENNIUM: date.setFullYear(date.getFullYear() + 1000); break; 
add: var incrementDate = function(date, zone) { for (var i = 0; i < zone.multiple; i++) { Timeline.GregorianUtilities.incrementByInterval(date, zone.unit); 
context:     var incrementDate = function(date) {        switch(p._unit) {        case Timeline.MILLISECOND:            date.setTime(date.getTime() + 1)            break;        case Timeline.SECOND:            date.setTime(date.getTime() + 1000);            break;        case Timeline.MINUTE:            date.setTime(date.getTime() + Timeline.GregorianUnitLengths[Timeline.MINUTE]);            break;        case Timeline.HOUR:            date.setTime(date.getTime() + Timeline.GregorianUnitLengths[Timeline.HOUR]);            break;        case Timeline.DAY:            date.setDate(date.getDate() + 1);            break;        case Timeline.WEEK:            date.setDate(date.getDate() + 7);            break;        case Timeline.MONTH:            date.setMonth(date.getMonth() + 1);            break;        case Timeline.YEAR:            date.setFullYear(date.getFullYear() + 1);            break;        case Timeline.DECADE:            date.setFullYear(date.getFullYear() + 10);            break;        case Timeline.CENTURY:            date.setFullYear(date.getFullYear() + 100);            break;        case Timeline.MILLENNIUM:            date.setFullYear(date.getFullYear() + 1000);            break;        }    };
meta: 7652	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7652/64b61a8066b7fe3bfaefccb3634849875a577cf7/timeline-ethers.js/clean/src/main/webapp/scripts/timeline-ethers.js