function u(s,n,t){const a=s.getTime()-n.getTime();let e=0;switch(t){case"d":e=a/(1e3*60*60*24);break;case"h":e=a/(1e3*60*60);break;case"m":e=a/(1e3*60);break;case"s":e=a/1e3;break}return e}const g=(s,n)=>{var t=s,a=n,e=a-t,r=Math.floor(e/(24*3600*1e3));r<0&&(r=r*-1);var o=e%(24*3600*1e3),c=Math.floor(o/(3600*1e3));return r+"\u5929 "+c+"\u5C0F\u65F6 "},d=(s,n=1)=>{if(!s)return"";const t=new Date(s),a=t.getFullYear(),e=t.getMonth()+1,r=t.getDate(),o=t.getHours(),c=t.getMinutes(),i=t.getSeconds();return n===1?`${a}\u5E74${e}\u6708${r}\u65E5`:`${a}\u5E74${e}\u6708${r}\u65E5 ${o}\u65F6${c}\u5206${i}\u79D2`};export{d as a,u as g,g as i};
