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

Function formatTime

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

Source from the content-addressed store, hash-verified

193}
194
195function formatTime(ts: number): string {
196 const d = new Date(ts)
197 return `${pad2(d.getHours())}:${pad2(d.getMinutes())}`
198}
199
200function formatTimeRange(startTs: number, endTs: number): string {
201 const start = new Date(startTs)

Callers 1

formatTimeRangeFunction · 0.70

Calls 1

pad2Function · 0.85

Tested by

no test coverage detected