function s(r,a="Y-m-d",e="en-US"){if(!r)return"";const t=new Date(r),n=o=>String(o).padStart(2,"0");e=e.replace("_","-");const i={Y:t.getFullYear(),m:n(t.getMonth()+1),d:n(t.getDate()),j:t.getDate(),F:t.toLocaleString(e,{month:"long"})};return a.replace(/Y|m|d|j|F/g,o=>i[o])}function u(r,a="24h",e="en-US"){if(!r)return"";const t=r.split(":").map(Number),n=new Date;return e=e.replace("_","-"),n.setHours(t[0]||0),n.setMinutes(t[1]||0),n.setSeconds(t[2]||0),n.toLocaleString(e,{hour:a==="12h"?"numeric":"2-digit",minute:"2-digit",hour12:a==="12h"})}export{u as a,s as f};
//# sourceMappingURL=dateTimeFormat-Df_ir-x_.js.map
