rem: date.setUTCFullYear(Math.floor(date.getFullYear() / 10) * 10); 
add: date.setUTCFullYear(Math.floor(date.getUTCFullYear() / 10) * 10); 
context: Timeline.GregorianUtilities.roundDownToInterval = function(date, intervalUnit) {    var clearInDay = function(d) {        d.setUTCMilliseconds(0);        d.setUTCSeconds(0);        d.setUTCMinutes(0);        d.setUTCHours(0);    };    var clearInYear = function(d) {        clearInDay(d);        d.setUTCDate(1);        d.setUTCMonth(0);    };        switch(intervalUnit) {    case Timeline.MILLISECOND:        break;    case Timeline.SECOND:        date.setUTCMilliseconds(0);        break;    case Timeline.MINUTE:        date.setUTCMilliseconds(0);        date.setUTCSeconds(0);        break;    case Timeline.HOUR:        date.setUTCMilliseconds(0);        date.setUTCSeconds(0);        date.setUTCMinutes(0);        break;    case Timeline.DAY:        clearInDay(date);        break;    case Timeline.WEEK:        // TODO: a week starts on different days in different locales.        clearInDay(date);        date.setDate(date.getDate() - date.getDay());        break;    case Timeline.MONTH:        clearInDay(date);        date.setUTCDate(1);        break;    case Timeline.YEAR:        clearInYear(date);        break;    case Timeline.DECADE:        clearInYear(date);        date.setUTCFullYear(Math.floor(date.getFullYear() / 10) * 10);        break;    case Timeline.CENTURY:        clearInYear(date);        date.setUTCFullYear(Math.floor(date.getFullYear() / 100) * 100);        break;    case Timeline.MILLENNIUM:        clearInYear(date);        date.setUTCFullYear(Math.floor(date.getFullYear() / 1000) * 1000);        break;    }};
meta: 7652	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7652/bbea6b49fa71bddec33c01a82a8898b845b4dc1d/timeline-ethers.js/clean/src/main/webapp/scripts/timeline-ethers.js