"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sleepMs = sleepMs;
exports.sleepSecs = sleepSecs;
exports.extractDate = extractDate;
function sleepMs(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}
function sleepSecs(seconds) {
    return sleepMs(seconds * 1000);
}
function extractDate(date) {
    const value = date instanceof Date ? date : new Date(date);
    return value.toISOString().slice(0, 10);
}
//# sourceMappingURL=date.js.map