MCPcopy Create free account
hub / github.com/anomalyco/models.dev / timestampToDate

Function timestampToDate

packages/core/script/generate-friendli.ts:99–102  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

97}
98
99function timestampToDate(timestamp: number): string {
100 const date = new Date(timestamp * 1000);
101 return date.toISOString().slice(0, 10);
102}
103
104function getTodayDate(): string {
105 return new Date().toISOString().slice(0, 10);

Callers 1

mergeModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected