MCPcopy Create free account
hub / github.com/dailydotdev/apps / isLateNight

Function isLateNight

packages/shared/src/features/patchy/patchyTriggers.ts:31–32  ·  view source on GitHub ↗
(now: Date, window: PatchyHourWindow)

Source from the content-addressed store, hash-verified

29};
30
31export 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.

Callers 3

usePatchyCompanionFunction · 0.90
getPatchyMoodFunction · 0.85

Calls 1

getWindowStartDayFunction · 0.85

Tested by

no test coverage detected