MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / formatDateTime

Function formatDateTime

packages/node-runtime/src/semantic-index/chunker.ts:190–193  ·  view source on GitHub ↗
(ts: number)

Source from the content-addressed store, hash-verified

188}
189
190function formatDateTime(ts: number): string {
191 const d = new Date(ts)
192 return `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())} ${pad2(d.getHours())}:${pad2(d.getMinutes())}`
193}
194
195function formatTime(ts: number): string {
196 const d = new Date(ts)

Callers 1

formatTimeRangeFunction · 0.70

Calls 1

pad2Function · 0.85

Tested by

no test coverage detected