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

Function memoryAgeDays

src/memdir/memoryAge.ts:6–8  ·  view source on GitHub ↗
(mtimeMs: number)

Source from the content-addressed store, hash-verified

4 * clamp to 0.
5 */
6export function memoryAgeDays(mtimeMs: number): number {
7 return Math.max(0, Math.floor((Date.now() - mtimeMs) / 86_400_000))
8}
9
10/**
11 * Human-readable age string. Models are poor at date arithmetic —

Callers 2

memoryAgeFunction · 0.85
memoryFreshnessTextFunction · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected