Wordpress better date snippet


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



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