News for hackers. Stuff that matters.
Re:Smart Time Ago: a new JS lib to update relative timestamp... by latchkey on Thursday July 26, 2012 @03:00PM (#4297924)
I just use http://momentjs.com/

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

Re:Smart Time Ago: a new JS lib to update relative timestamp... by yehanyin on Thursday July 26, 2012 @03:34PM (#4298125)
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.
Re:Smart Time Ago: a new JS lib to update relative timestamp... by latchkey on Thursday July 26, 2012 @03:38PM (#4298154)
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.