UNPKG

@copado/copado-cli

Version:

Copado Developer CLI

11 lines 484 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DateFormatter = void 0; class DateFormatter { static format(dateInput) { const date = typeof dateInput === 'string' ? new Date(dateInput) : dateInput; return `${date.getUTCFullYear()}-${date.getMonth() + 1}-${date.getUTCDate()} ${date.getUTCHours()}:${date.getUTCMinutes()}:${date.getUTCSeconds()}`; } } exports.DateFormatter = DateFormatter; //# sourceMappingURL=date.js.map