/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago'; ?>
URL: http://www.wprecipes.com/display-dates-as-time-ago-the-easy-way