v.1.4.3/api update

This commit is contained in:
2020-07-16 16:13:22 -04:00
parent a80a8673ff
commit 19a7adf62c
29 changed files with 176 additions and 695 deletions
-7
View File
@@ -1,7 +0,0 @@
module.exports = function (ds1, ds2) {
const d1 = new Date(ds1);
const d2 = new Date(ds2);
var diff = (d2.getTime() - d1.getTime()) / 1000;
diff /= 60 * 60;
return Math.abs(Math.round(diff));
};