netpower-js
Version:
A common library that can be used for fe and be
12 lines • 388 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var HOURS = 60 * 60 * 1000;
Date.prototype.addHours = function (hours) {
this.setTime(this.getTime() + (hours * HOURS));
return this;
};
Date.prototype.addDays = function (days) {
this.setTime(this.getTime() + (days * 24 * HOURS));
return this;
};
//# sourceMappingURL=datetime.js.map