Show the difference between a date and now (4 days ago)
JavaScript Shell
Latest commit 8d3e28a Sep 10, 2014 @zachleat Merge pull request #11 from knownasilya/patch-1
Update README to use markdown


A better way to display relative dates using JavaScript. Instead of a raw date string, this script will return strings like "2 hours ago" or "5 days".


humaneDate(new Date);

jQuery Plugin

<span title="2008-01-28T20:24:17Z">January 1, 2008 20:24:17 GMT</span>


<time datetime="2008-01-28T20:24:17Z">January 1, 2008 20:24:17 GMT</time>



To run the full test suite:

cd test


Copyright (c) 2008 Dean Landolt ( Re-write by Zach Leatherman (

Adopted from the John Resig's pretty.js at and henrah's proposed modification at

Licensed under the MIT license.

See more at