rem: var age = {days: Math.floor((diff % Date.ONEMONTH) / Date.ONEDAY), 
add: var age = {days: Math.floor(diff / Date.ONEDAY), 
context: Date.prototype.getTimespan = function(param) {    if (!param)        param = {date: new Date()};    else if (!param.date)        param.date = new Date();    var result = {isFuture: this > param.date};    var diff = Math.abs(param.date.diff(this));    var age = {days: Math.floor((diff % Date.ONEMONTH) / Date.ONEDAY),               hours: Math.floor((diff % Date.ONEDAY) / Date.ONEHOUR),               minutes: Math.floor((diff % Date.ONEHOUR) / Date.ONEMINUTE)};    res.push();    if (diff < Date.ONEMINUTE)        res.write(param.now || "now");    else {        var arr = [{one: "day", many: "days"},                   {one: "hour", many: "hours"},                   {one: "minute", many: "minutes"}];        for (var i in arr) {            var value = age[arr[i].many];            if (value != 0) {                var prop = (value == 1 ? arr[i].one : arr[i].many);                res.write(value);                res.write(" ");                res.write(param[prop] || prop);                if (i < arr.length -1)                    res.write(param.delimiter || ", ");            }        }    }    result.span = res.pop();    return result;};
meta: 2504	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2504/e6d7fe7520a828043f252beb3f861e008d0b0132/Date.js/clean/core/Date.js