"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildIsoDateString = void 0;
const zeroPad_1 = require("@astral/utils/zeroPad");
/**
 * утилита генерирующая строковую дату в формате ISO
 */
const buildIsoDateString = ({ year, month = 1, day = 1, hour = 0, minute = 0, second = 0, }) => {
    const YYYY = (0, zeroPad_1.zeroPad)(year, 4);
    const MM = (0, zeroPad_1.zeroPad)(month, 2);
    const DD = (0, zeroPad_1.zeroPad)(day, 2);
    const HH = (0, zeroPad_1.zeroPad)(hour, 2);
    const mm = (0, zeroPad_1.zeroPad)(minute, 2);
    const ss = (0, zeroPad_1.zeroPad)(second, 2);
    return `${YYYY}-${MM}-${DD}T${HH}:${mm}:${ss}.000Z`;
};
exports.buildIsoDateString = buildIsoDateString;
