node-timeago icon indicating copy to clipboard operation
node-timeago copied to clipboard

README not consistent with actual output

Open rprieto opened this issue 11 years ago • 0 comments

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!

rprieto avatar Feb 26 '14 01:02 rprieto