Skip to content

'allowFuture' option or built-in Moment.js formatting #25

Description

@philfreo

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();
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions