Display dates as "Time ago"


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Posted <?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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.