System.register(["cc"], function (_export, _context) { "use strict"; var _cclegacy, _crd; return { setters: [function (_cc) { _cclegacy = _cc.cclegacy; }], execute: function () { _crd = true; _cclegacy._RF.push({}, "80ebbBz8etB5qijWdYrU2HH", "DateExt", undefined); /** 格式化时间字符串 */ Date.prototype.format = function (format) { const year = this.getFullYear(); const month = this.getMonth() + 1; const day = this.getDate(); const hours = this.getHours(); const minutes = this.getMinutes(); const seconds = this.getSeconds(); return format.replace('yy', year.toString()).replace('mm', (month < 10 ? '0' : '') + month).replace('dd', (day < 10 ? '0' : '') + day).replace('hh', (hours < 10 ? '0' : '') + hours).replace('mm', (minutes < 10 ? '0' : '') + minutes).replace('ss', (seconds < 10 ? '0' : '') + seconds); }; _cclegacy._RF.pop(); _crd = false; } }; }); //# sourceMappingURL=79bea6acb0ac13cf3eb3a8908460226ea3f7f53b.js.map