Hacker News new | ask | show | jobs
by latchkey 5069 days ago
I just use http://momentjs.com/

Does timeago (with localizations) and more in one tiny library.

1 comments

It's different. While momentjs focus on date parsing, manipulating and formatting, smart-time-ago is the lib to update the relative timestamps in time on the page.
Moment does both functions and 99% of the time that you're working with dates in an app, you're going to need both. Also, Moment is localized and has a fairly large community around it. The world doesn't need yet another timeago.