views:

177

answers:

1

Does anybody know how did facebook do that "time ago". I'm trying to do the same with php/javascript. I think it works something like php renders timestamp in html and then javascript continuously calculate the time ago, does anybody know anymore info about this?

alt text

+14  A: 

http://timeago.yarp.com/

This is a great jQuery plugin for it, and it explains the concept quite concisely.

brianreavis
+1. This is better than any possible PHP solution because it updates automaticly.
Billy ONeal