I need some JS code that will take the created_at value from a Twitter feed and display it as xxxx ago.
I can find examples of creating the xxxx a
I was running into this issue myself, and I think it's time for a grown-up library. I use moment.js for time formatting, so I wrote an extension to do the right display parsing for Twitter:
https://github.com/hijonathan/moment.twitter
It also has a different method for returning super abbreviated timestamps (e.g. 7h) like in the Twitter iPhone app.