MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getLocalMonthYear

Function getLocalMonthYear

src/constants/common.ts:28–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26// Returns "Month YYYY" (e.g. "February 2026") in the user's local timezone.
27// Changes monthly, not daily — used in tool prompts to minimize cache busting.
28export function getLocalMonthYear(): string {
29 const date = process.env.CLAUDE_CODE_OVERRIDE_DATE
30 ? new Date(process.env.CLAUDE_CODE_OVERRIDE_DATE)
31 : new Date()
32 return date.toLocaleString('en-US', { month: 'long', year: 'numeric' })
33}
34

Callers 1

getWebSearchPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected