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

Function getDefaultStartOfWeek

packages/shared/src/lib/date.ts:34–40  ·  view source on GitHub ↗
(weekStart?: number)

Source from the content-addressed store, hash-verified

32};
33
34export const getDefaultStartOfWeek = (weekStart?: number): string => {
35 if (isNullOrUndefined(weekStart)) {
36 return DEFAULT_WEEK_START.toString();
37 }
38
39 return (weekStart as number).toString();
40};
41
42// Weekly quests rotate at the start of each week (Monday 00:00 UTC), matching
43// DEFAULT_WEEK_START and the server's UTC rotation boundary. `|| 7` keeps the

Callers 1

ToggleWeekStartFunction · 0.90

Calls 1

isNullOrUndefinedFunction · 0.90

Tested by

no test coverage detected