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 H
http://timeago.yarp.com/
This is a great jQuery plugin for it, and it explains the concept quite concisely.
Here's another fully-customizable alternative: https://github.com/layam/js_humanized_time_span