3 ms·
I just use http://momentjs.com/ http://momentjs.com/ Does timeago (with localizations) and more in one tiny library.
by latchkey 14y ago
I just use http://momentjs.com/ http://momentjs.com/
Does timeago (with localizations) and more in one tiny library.
- yehanyin 14y agoIt'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.
- latchkey 14y agoMoment 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.