0.0.3 • Published 10 years ago
date-delta v0.0.3
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.