function s(n){var t=new Date,e=t.getHours(),a=t.getMinutes(),g=t.getSeconds();e>=0&&e<=9&&(e="0"+e),a>=0&&a<=9&&(a="0"+a),g>=0&&g<=9&&(g="0"+g);var r=`${e}:${a}:${g}`;let o=t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate())+" "+r;t.setDate(t.getDate()-n);var D=t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate())+" 00:00:00";return{start:D,end:o}}export{s as g};
