# 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 **If you like this project, please help. [Donate via Gittip][gittip] or [buy me a coffee with Bitcoin][bitcoin].**
[![Gittip](http://img.shields.io/gittip/rmm5t.svg)][gittip] [![Bitcoin](http://img.shields.io/badge/bitcoin-buy%20me%20a%20coffee-brightgreen.svg)][bitcoin] **[Bitcoin][bitcoin]**: `1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m`
[![Bitcoin Donation][bitcoin-qr-small]][bitcoin-qr-big] ## Need Help? **You can [book a session with me on Codementor][codementor].**
[![Book a Codementor session](http://img.shields.io/badge/codementor-book%20a%20session-orange.svg)][codementor] [gittip]: https://www.gittip.com/rmm5t/ "Donate to rmm5t for open source!" [bitcoin]: https://blockchain.info/address/1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m "Buy rmm5t a coffee for open source!" [bitcoin-scheme]: bitcoin:1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m?amount=0.01&label=Coffee%20to%20rmm5t%20for%20Open%20Source "Buy rmm5t a coffee for open source!" [bitcoin-qr-small]: http://chart.apis.google.com/chart?cht=qr&chs=150x150&chl=bitcoin%3A1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m%3Famount%3D0.01%26label%3DCoffee%2520to%2520rmm5t%2520for%2520Open%2520Source [bitcoin-qr-big]: http://chart.apis.google.com/chart?cht=qr&chs=500x500&chl=bitcoin%3A1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m%3Famount%3D0.01%26label%3DCoffee%2520to%2520rmm5t%2520for%2520Open%2520Source [codementor]: https://www.codementor.io/rmm5t "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 `