Newer
Older
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatPdfTime = void 0;
const formatPdfTime = (datetimeString) => {
if (!datetimeString)
return;
const result = datetimeString.split("D:");
const timestamp = result[1].split("Z");
const year = timestamp[0].substring(0, 4);
const month = timestamp[0].substring(4, 6);
const day = timestamp[0].substring(6, 8);
const hours = timestamp[0].substring(8, 10);
const min = timestamp[0].substring(10, 12);
const seconds = timestamp[0].substring(12, 14);
return `${year}.${month}.${day} ${hours}:${min}:${seconds}`;
};
exports.formatPdfTime = formatPdfTime;