This function can be used to display time ago that using by facebook or twitter. Here the example:
13 mins ago, 1 month ago, or 1year ago.
You can add this at your template function file
[sourcecode lang="php"]
function time_ago($d) {
$t = strtotime($d);
return human_time_diff($t, current_time('timestamp')) . " " . __('ago');
}
?>
[/sourcecode]
How to use?
[sourcecode lang="php"]
comment_date); ?>
[/sourcecode]
Related posts:


wow, nice share.
I’ll try…thanx
[...] can add this at your template function file http://ahlul.web.id/2010/06/21/show-time-facebooktwitter-like-wordpress.html [...]