const p=(r,s={})=>{const{showSeconds:t=!0,showUTC:o=!0,dateSeparator:n="-",timeSeparator:a=":",dateTimeSeparator:i=" "}=s;if(!r)return"Unknown time";const e=new Date(r);if(isNaN(e.getTime()))return"Invalid time";const c=e.getUTCFullYear(),g=String(e.getUTCMonth()+1).padStart(2,"0"),T=String(e.getUTCDate()).padStart(2,"0"),u=String(e.getUTCHours()).padStart(2,"0"),C=String(e.getUTCMinutes()).padStart(2,"0"),U=String(e.getUTCSeconds()).padStart(2,"0"),m=`${c}${n}${g}${n}${T}`;let S=`${u}${a}${C}`;t&&(S+=`${a}${U}`);let d=`${m}${i}${S}`;return o&&(d+=" UTC"),d},l=r=>p(r,{showUTC:!1}),$=(r,s="YYYY-MM-DD HH:mm:ss")=>{if(!r)return"Unknown time";const t=new Date(r);if(isNaN(t.getTime()))return"Invalid time";const o=t.getUTCFullYear(),n=String(t.getUTCMonth()+1).padStart(2,"0"),a=String(t.getUTCDate()).padStart(2,"0"),i=String(t.getUTCHours()).padStart(2,"0"),e=String(t.getUTCMinutes()).padStart(2,"0"),c=String(t.getUTCSeconds()).padStart(2,"0");return s.replace("YYYY",o).replace("MM",n).replace("DD",a).replace("HH",i).replace("mm",e).replace("ss",c)};export{l as a,$ as f};
