MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / startOfDay

Function startOfDay

packages/billing/src/subscription.ts:106–110  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

104// ---------------------------------------------------------------------------
105
106function startOfDay(date: Date): Date {
107 const d = new Date(date)
108 d.setUTCHours(0, 0, 0, 0)
109 return d
110}
111
112function addDays(date: Date, days: number): Date {
113 return new Date(date.getTime() + days * 24 * 60 * 60 * 1000)

Callers 1

getWeekStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected