MCPcopy Index your code
hub / github.com/massCodeIO/massCode / getDayKey

Function getDayKey

src/main/api/routes/notes-dashboard.ts:18–26  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

16}
17
18function getDayKey(timestamp: number): string {
19 const date = new Date(timestamp)
20
21 return [
22 date.getFullYear(),
23 String(date.getMonth() + 1).padStart(2, '0'),
24 String(date.getDate()).padStart(2, '0'),
25 ].join('-')
26}
27
28function buildActivity(updatedAtList: number[]) {
29 const days: Record<string, number> = {}

Callers 1

buildActivityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected