node-datediffs
v0.0.1
Published
Module for calculate difference bettwen two date
Downloads
5
Readme
node-datediff
Module to calculate difference between two date
Fork from datediff
Example
var datediff = require('node-datediffs');
var from = new Date(2012, 8, 0,0,10, 12),
to = new Date(2014, 0, 1, 0, 56, 13),
diff;
diff = datediff(from, to);
console.log( diff )
{
years: 1,
months: 4,
days: 3
hours: 2,
minutes: 46,
seconds: 1
}