I'm trying to convert a unix time stamp to display like facebook and twitter. For example, when you see tweets or comments placed on twitter/facebook you see the date/time displayed like so:
'2 mins ago' or '2 days ago' or '2 weeks ago'
Does anyone one know of any function to get it working like this. I'm guessing it will be a custom one.
Any help is much appreciated