Skip to content

Instantly share code, notes, and snippets.

View svetoslavovm's full-sized avatar

Martin Svetoslavov svetoslavovm

View GitHub Profile
@svetoslavovm
svetoslavovm / datediff.js
Created November 11, 2012 20:39 — forked from remino/datediff.js
JavaScript: DateDiff & DateMeasure: Calculate days, hours, minutes, seconds between two Dates
(function() {
function DateDiff(date1, date2) {
this.days = null;
this.hours = null;
this.minutes = null;
this.seconds = null;
this.date1 = date1;
this.date2 = date2;