MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / unixTs

Function unixTs

tests/chart-runtime/render-chart.integration.test.ts:16–18  ·  view source on GitHub ↗
(iso: string)

Source from the content-addressed store, hash-verified

14}
15
16function unixTs(iso: string): number {
17 return Math.floor(Date.parse(iso) / 1000)
18}
19
20function createTempDir(): string {
21 return mkdtempSync(path.join(tmpdir(), 'chatlab-chart-runtime-'))

Callers 3

seedChatDbFunction · 0.70
addFunction · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected