if(diff < 60){ diff = Math.round(diff); return diff + " second" + (diff == 1 ? "" : "s") + end; } if(diff < 60*60){ diff = Math.round(diff/60); return diff + " minute" + (diff == 1 ? "" : "s") + end; } if(diff < 60*60*24){ diff = Math.round(diff/3600); return diff + " hour" + (diff == 1 ? "" : "s") + end; } if(diff < 60*60*24*7){ diff = Math.round(diff/(3600*24)); if(diff == 1){ return future ? "Tomorrow" : "Yesterday"; }else{ return diff + " days" + end; } } return dojo.date.format(dateObject); 
if(diff < 60){ diff = Math.round(diff); return diff + " second" + (diff == 1 ? "" : "s") + end; } if(diff < 60*60){ diff = Math.round(diff/60); return diff + " minute" + (diff == 1 ? "" : "s") + end; } if(diff < 60*60*24){ diff = Math.round(diff/3600); return diff + " hour" + (diff == 1 ? "" : "s") + end; } if(diff < 60*60*24*7){ diff = Math.round(diff/(3600*24)); if(diff == 1){ return future ? "Tomorrow" : "Yesterday"; }else{ return diff + " days" + end; } } return dojo.date.format(dateObject); 
dojo.date.toRelativeString = function(/*Date*/dateObject){// summary://  Returns an description in English of the date relative to the current date.  Note: this is not localized yet.  English only.//// description: Example returns://   - "1 minute ago"//   - "4 minutes ago"//   - "Yesterday"//   - "2 days ago"  var now = new Date();  var diff = (now - dateObject) / 1000;  var end = " ago";  var future = false;  if(diff < 0){    future = true;    end = " from now";    diff = -diff;  }  if(diff < 60){    diff = Math.round(diff);    return diff + " second" + (diff == 1 ? "" : "s") + end;  }  if(diff < 60*60){    diff = Math.round(diff/60);    return diff + " minute" + (diff == 1 ? "" : "s") + end;  }  if(diff < 60*60*24){    diff = Math.round(diff/3600);    return diff + " hour" + (diff == 1 ? "" : "s") + end;  }  if(diff < 60*60*24*7){    diff = Math.round(diff/(3600*24));    if(diff == 1){      return future ? "Tomorrow" : "Yesterday";    }else{      return diff + " days" + end;    }  }  return dojo.date.format(dateObject); // String};
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/65ae7e8768a77997b7894e274bc242069a1cb027/struts_dojo.js.uncompressed.js/clean/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js