UNPKG

@graphteon/juricode

Version:

We are forging the future with lines of digital steel

15 lines 691 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFormattedDateTime = void 0; const getFormattedDateTime = () => { const now = new Date(); const year = now.getFullYear(); const month = String(now.getMonth() + 1).padStart(2, "0"); const day = String(now.getDate()).padStart(2, "0"); const hour = String(now.getHours()).padStart(2, "0"); const minute = String(now.getMinutes()).padStart(2, "0"); const second = String(now.getSeconds()).padStart(2, "0"); return `${year}-${month}-${day}-${hour}-${minute}-${second}`; }; exports.getFormattedDateTime = getFormattedDateTime; //# sourceMappingURL=gget-formatted-datetime.js.map