Great library! Structured so much nicer than jquery-timeago for single-page js apps in terms of memory usage, etc.
Feature request: support the formatting of future dates like "in 2 months".
- Either something like the
allowFuture option from jquery-timeago (although I think it should be on by default)
- Or a built-in way to use Moment.js
fromNow for the duration formatting. I'm currently doing it this way:
$.fn.timeago.Constructor.prototype.timeAgoInWords = function(timeString) {
return moment(timeString).fromNow();
};
Great library! Structured so much nicer than jquery-timeago for single-page js apps in terms of memory usage, etc.
Feature request: support the formatting of future dates like "in 2 months".
allowFutureoption from jquery-timeago (although I think it should be on by default)fromNowfor the duration formatting. I'm currently doing it this way: