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

Function isValidDate

packages/shared/src/lib/dateFormat.ts:18–19  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

16const oneMonth = 30 * oneDay;
17export const oneYear = oneDay * 365;
18export const isValidDate = (date: Date): boolean =>
19 !Number.isNaN(date.getTime());
20
21// Reads an ISO day stamp persisted through `usePersistentContext`, the
22// once-per-day guard idiom shared by the quest offers popup and the reading

Callers 5

isTodayDateFunction · 0.90
DateFormatFunction · 0.90
isTodayDateFunction · 0.90
isTodayStampFunction · 0.85
formatDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected