← Back
Editing: differenceInDays-B9JKhJSP.js
import{bf as l,bg as i}from"./index-LQ-JIYiv.js?v=1774508183068";function f(e,s){const n=l(e),t=l(s),o=u(n,t),r=Math.abs(i(n,t));n.setDate(n.getDate()-o*r);const g=+(u(n,t)===-o),c=o*(r-g);return c===0?0:c}function u(e,s){const n=e.getFullYear()-s.getFullYear()||e.getMonth()-s.getMonth()||e.getDate()-s.getDate()||e.getHours()-s.getHours()||e.getMinutes()-s.getMinutes()||e.getSeconds()-s.getSeconds()||e.getMilliseconds()-s.getMilliseconds();return n<0?-1:n>0?1:n}export{f as d};
Save File
Cancel