function e(e,t,n,r,i){let a=e.setHour(t,n);return a=e.setMinute(a,r),a=e.setSecond(a,i),a}function t(e,t,n){if(!n)return t;let r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n)),r}function n(e,t,n,r,i,a){let o=Math.floor(e/r)*r;if(o<e)return[o,60-i,60-a];let s=Math.floor(t/i)*i;return s<t?[o,s,60-a]:[o,s,Math.floor(n/a)*a]}function r(e,t){let n=e.getYear(t),r=e.getMonth(t)+1,i=e.getEndDate(e.getFixedDate(`${n}-${r}-01`)),a=e.getDate(i);return`${n}-${r<10?`0${r}`:`${r}`}-${a}`}exports.getLastDay=r,exports.getLowerBoundTime=n,exports.setDateTime=t,exports.setTime=e;