MCPcopy Create free account
hub / github.com/winfunc/opcode / isToday

Function isToday

src/lib/date-utils.ts:87–90  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

85}
86
87function isToday(date: Date): boolean {
88 const today = new Date();
89 return date.toDateString() === today.toDateString();
90}
91
92function isYesterday(date: Date): boolean {
93 const yesterday = new Date();

Callers 1

formatUnixTimestampFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected