Rate: | Price: Free | Publisher: Office Site | Demo: | Views: 2336
PHP Script Codes > Display human friendly relative dates and times
One of the really lovely features that social sites like Twitter and Facebook give to users is a nice friendly way of displaying relative dates and times. For example:
"1 hour ago"
"Next Tuesday"
"Next month"
This PHP class converts an SQL date into a human friendly string representing that date and time relative to now.