date-delta

Lightweight Datetime Delta for JavaScript

npm install date-delta
4 downloads in the last week
7 downloads in the last month

date-delta

Lightweight Datetime Delta for JavaScript

Usage

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.

npm loves you