请问 关于抓取某个时段的时间戳计算

如果以下时段每天的 06:00~08:00,才会触发事件,其他时段都不要触发,想请问怎么抓到每天 06:00 的时间戳?

isTimeBetween6And8(): boolean {
const now = new Date();
const start = new Date(
now.getFullYear(),
now.getMonth(),
now.getDate(),
6,
0,
0
);
const end = new Date(
now.getFullYear(),
now.getMonth(),
now.getDate(),
8,
0,
0
);
return now >= start && now < end;
}