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

Function subtractWeeks

scripts/get-changelog.ts:40–44  ·  view source on GitHub ↗
(date: Date, weeks: number)

Source from the content-addressed store, hash-verified

38}
39
40function subtractWeeks(date: Date, weeks: number): Date {
41 const d = new Date(date)
42 d.setDate(d.getDate() - weeks * 7)
43 return d
44}
45
46function formatDate(date: Date, format: string): string {
47 const year = date.getFullYear()

Callers 1

generateAllChangelogsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected