Possible Duplicate:
How do I calculate relative time?
I want to know how to display these data as seen on stackoverflow.com profile page. I have the timestamp of users registered date and last visit date. But I need to display using stackoverflow.com format.
For example:
Member since: 9 months
Last seen: just now
Is there any script to convert these dates and display in such format?