function l(t,u,s,o,n){let r=t.setHour(u,s);return r=t.setMinute(r,o),r=t.setSecond(r,n),r}function w(t,u,s){if(!s)return u;let o=u;return o=t.setHour(o,t.getHour(s)),o=t.setMinute(o,t.getMinute(s)),o=t.setSecond(o,t.getSecond(s)),o}function h(t,u,s,o,n,r){const c=Math.floor(t/o)*o;if(c<t)return[c,60-n,60-r];const M=Math.floor(u/n)*n;if(M<u)return[c,M,60-r];const $=Math.floor(s/r)*r;return[c,M,$]}function D(t,u){const s=t.getYear(u),o=t.getMonth(u)+1,n=t.getEndDate(t.getFixedDate(`${s}-${o}-01`)),r=t.getDate(n),c=o<10?`0${o}`:`${o}`;return`${s}-${c}-${r}`}export{D as getLastDay,h as getLowerBoundTime,w as setDateTime,l as setTime};
