const endm = new Date(new Date().setHours(8, 0, 0, 0))//默认开始时间
const startm = new Date();
startm.setTime(startm.setHours(8, 0, 0, 0) - 3600 * 1000 * 24 * 1);
console.log('昨日开始时间', parseTime(startm));
console.log('昨日结束时间', parseTime(endm));
const endtm = new Date(new Date().setHours(8, 0, 0, 0))//默认开始时间
const starttm = new Date();
starttm.setTime(starttm.setHours(8, 0, 0, 0) - 3600 * 1000 * 24 * 3);
console.log('前三天开始时间', parseTime(starttm));
console.log('前三天结束时间', parseTime(endtm));