0.0.1 • Published 10 years ago

datediff v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
10 years ago

datediff Build Status

Simple module to calculate difference between two date

Example

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
}