(now: Date, window: PatchyHourWindow)
| 29 | }; |
| 30 | |
| 31 | export const isLateNight = (now: Date, window: PatchyHourWindow): boolean => |
| 32 | getWindowStartDay(now, window) !== null; |
| 33 | |
| 34 | // The night a late read belongs to, so the yawn plays once per night even |
| 35 | // when the window wraps past midnight. |
no test coverage detected