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.