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
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
See this question http://stackoverflow.com/questions/11/how-do-i-calculate-relative-time
I do this on my site often but I use PHP not javascript for the conversion