2

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

rawrrrrrrrr
  • 3,547
  • 7
  • 25
  • 33
  • See this question [http://stackoverflow.com/questions/11/how-do-i-calculate-relative-time](http://stackoverflow.com/questions/11/how-do-i-calculate-relative-time) – Ken Browning Jul 25 '09 at 05:04

2 Answers2

2

Javascript Pretty Date by John Resig

Jon Galloway
  • 51,318
  • 25
  • 122
  • 193
0

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

JasonDavis
  • 46,856
  • 96
  • 302
  • 523