How to: Create facebook or twitter style “x-time ago” date format in php

Normally date formats are like “ January 1 2010 10:40:25 GMT” , “01 Mar 2010“, etc. But here I tell you ‘how to show date like “1 minute ago“, “2 days ago“, displayed on Facebook , Twitter etc.. In PHP time(); function returns a Unix Value of current date and…

Read More