Add a Twitter like Time Stamp to your Posts or Comments

$diff = human_time_diff( '2012-05-05 12:05:00', '2012-05-05 12:10:00' );
echo 'This comment was submitted ' . $diff . 'ago';

// Output: This comment was submitted 5 minutes ago

Leave a Reply

Your email address will not be published. Required fields are marked *

− 3 = 4