25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getTimeDiffer.8e05304a.js 377B

1
  1. function v(t,s,i){const a=t.getTime()-s.getTime();let e=0;switch(i){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 n=(t,s)=>{var i=t,a=s,e=a-i,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 "};export{v as g,n as i};