Skip to content

README not consistent with actual output #6

@rprieto

Description

@rprieto

The README mentions:

var timeago = require('timeago');
var pretty = timeago(+new Date());
console.log(pretty); // just now

From what I tried:

  • timeago(+new Date()) : undefined, because +new Date() returns a timestamp which is not supported
  • timeago(new Date()) : less than a minute ago (not "just now")

I like the README version better, could we:

  • merge the pending PR that supports timestamps
  • add support for "just now"

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions