0.0.1 • Published 6 years ago

node-datediffs v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

node-datediff Build Status

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
}