getButterfly Logo getButterfly


A while ago I wrote about the “nice date” feature for PHP dates, (e.g. “4 minutes ago” or “about 1 day ago”). Read the old post here –

A jQuery alternative to this date is a plugin called timeago, which automatically converts any standard PHP date into a fuzzy timestamp.

Avoid timestamps dated “1 minute ago” even though the page was opened 10 minutes ago;timeago refreshes automatically.

You can take full advantage of page caching in your web applications, because the timestamps aren’t calculated on the server.

You get to use microformats like the cool kids.

Subscribe to getButterfly Blog

Once a week or so we send an email with our best content. We never bug you, we just send you our latest piece of content.

If you found any value in this post, agree, disagree, or have anything to add - please do. I use comments as my #1 signal for what to write about. Read our comment policy before commenting! Comments such as "Thank you!", "Awesome!", "You're the man!" are either marked as spam or stripped from URL.

Leave a Reply

Your email address will not be published. Required fields are marked *