MCPcopy Index your code
hub / github.com/anomalyco/opencode / formatWeek

Function formatWeek

packages/console/core/script/black-stats.ts:283–285  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

281}
282
283function formatWeek(value: number) {
284 return formatDate(isoWeekStart(value)) ?? ""
285}
286
287function startOfMonth(value: Date) {
288 return new Date(Date.UTC(value.getUTCFullYear(), value.getUTCMonth(), 1))

Callers 1

black-stats.tsFile · 0.85

Calls 2

isoWeekStartFunction · 0.85
formatDateFunction · 0.70

Tested by

no test coverage detected