date-delta

Lightweight Datetime Delta for JavaScript

date-delta

Lightweight Datetime Delta for JavaScript

This simply takes a date object and returns the time difference from now as a sentence.

var date = new DateDelta('2013-12-09');
data.fromNow();
// → about 1 day ago

This isn't meant to be a huge all inclusive library. If you need more functionality, checkout out Moment.js.