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,647
  • 7
  • 28
  • 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
  • 52,327
  • 25
  • 125
  • 193
0

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

JasonDavis
  • 48,204
  • 100
  • 318
  • 537