Public Gists by jmvallet

Gravatar
Tue May 05 12:29:56 -0700 2009
1
2
3
var DateHelper = {
  timeAgoInWords: function(from) {
    return this.distanceOfTimeInWords(new Date(), from);
Gravatar
Thu Feb 05 23:38:52 -0800 2009
1
2
3
// cf http://www.37signals.com/svn/posts/1557-javascript-makes-relative-times-compatible-with-caching
 
var DateHelper = {