What's the best way to show a time stamp based on different times? For example: if a post is under 24 hours, show %% mins/hours ago. If a post is over 24 hours, show month/day/time. If a post if over a year ago, show month/day/year/time.
I've done this so far:
<?php if(get_the_time('G') < 23) {
the_time('Y'); } else {
the_time('F j, Y at g:i a'); } ?>