# timeago: a jQuery plugin Timeago is a jQuery plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago") from ISO 8601 formatted dates and times embedded in your HTML (à la microformats). --- **How You Can Help** [![Square Cash](http://img.shields.io/badge/square%20cash-$rmm5t-brightgreen.svg)][square] [![Gratipay](http://img.shields.io/gratipay/rmm5t.svg)][gratipay] [![Book a Codementor session](http://img.shields.io/badge/codementor-book%20a%20session-orange.svg)][codementor] If you like this project, [buy me a coffee][square], [donate via Gratipay][gratipay], or [book a session with me on Codementor][codementor]. Bitcoin: `1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m` [square]: https://cash.me/$rmm5t "Donate to rmm5t for open source!" [gratipay]: https://gratipay.com/rmm5t/ "Donate to rmm5t for open source!" [bitcoin]: bitcoin:1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m?amount=0.01&label=Coffee%20to%20rmm5t%20for%20Open%20Source "Buy rmm5t a coffee for open source!" [codementor]: https://www.codementor.io/rmm5t?utm_campaign=profile&utm_source=button-rmm5t&utm_medium=shields "Book a session with rmm5t on Codementor!" ## Usage First, load jQuery and the plugin: ```html ``` Now, let's attach it to your timestamps on DOM ready - put this in the head section: ```html ``` This will turn all abbr elements with a class of timeago and an ISO 8601 timestamp in the title (conforming to the [datetime design pattern microformat](http://microformats.org/wiki/datetime-design-pattern)): ```html December 17, 2011 ``` into something like this: ```html about 1 day ago ``` HTML5 `