"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toMsecs = void 0;
function toMsecs(schedule) {
    var _a, _b, _c, _d, _e;
    const days = (_a = schedule.days) !== null && _a !== void 0 ? _a : 0;
    const hours = (_b = schedule.hours) !== null && _b !== void 0 ? _b : 0;
    const minutes = (_c = schedule.minutes) !== null && _c !== void 0 ? _c : 0;
    const seconds = (_d = schedule.seconds) !== null && _d !== void 0 ? _d : 0;
    const milliseconds = (_e = schedule.milliseconds) !== null && _e !== void 0 ? _e : 0;
    return (milliseconds +
        seconds * 1000 +
        minutes * 60 * 1000 +
        hours * 60 * 60 * 1000 +
        days * 24 * 60 * 60 * 1000);
}
exports.toMsecs = toMsecs;
//# sourceMappingURL=SimpleIntervalSchedule.js.map