You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
512 B
2 lines
512 B
function n(e){return String(e).padStart(2,"0")}function u(e,c="YYYY-MM-DD HH:mm:ss"){const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const r=t.getFullYear(),s=t.getMonth()+1,o=t.getDate(),Y=t.getHours(),g=t.getMinutes(),i=t.getSeconds(),m={YYYY:String(r),YY:String(r).slice(-2),MM:n(s),M:String(s),DD:n(o),D:String(o),HH:n(Y),H:String(Y),mm:n(g),m:String(g),ss:n(i),s:String(i)};return c.replace(/YYYY|YY|MM|M|DD|D|HH|H|mm|m|ss|s/g,a=>m[a]??a)}export{u as f};
|
|
//# sourceMappingURL=date-C5WgHm2x.js.map
|
|
|