views:

488

answers:

3

The Twitter API returns time stamps of the form:

"Sat, 25 Jul 2009 04:54:42 +0000"

What's the best way to convert a time stamp of this form to "____ seconds/minutes/hours/months ago" depending on the time zone?

Thanks

+1  A: 

Javascript Pretty Date by John Resig

Jon Galloway
A: 

I do this on my site often but I use PHP not javascript for the conversion

jasondavis