MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getYesterdayDateString

Function getYesterdayDateString

src/utils/statsCache.ts:422–426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420 * Get yesterday's date in YYYY-MM-DD format.
421 */
422export function getYesterdayDateString(): string {
423 const yesterday = new Date()
424 yesterday.setDate(yesterday.getDate() - 1)
425 return toDateString(yesterday)
426}
427
428/**
429 * Check if a date string is before another date string.

Callers 1

aggregateClaudeCodeStatsFunction · 0.85

Calls 1

toDateStringFunction · 0.85

Tested by

no test coverage detected