Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

DHH's relative date helper in jQuery flavor

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 jquery.relative-date.js
Octocat-spinner-32 readme.md
readme.md

jQuery Relative Date

A jQuery plugin adapted from DHH's relative date helper for JS. I got tired of this not being a jQuery plugin, so here it is.

Usage:

<ul>
    <li><a href="#">Item 1</a> <span class="timestamp">12/05/2010 05:06:47</span></li>
    <li><a href="#">Item 2</a> <span class="timestamp">12/04/2010 00:16:38</span></li>
    <li><a href="#">Item 3</a> <span class="timestamp">12/02/2010 07:37:29</span></li>
</ul>
...
$('.timestamp').relativeDate();
Something went wrong with that request. Please try again.