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

Function parseIsoMs

packages/tools/src/definitions/retrieve-chat-evidence.ts:118–122  ·  view source on GitHub ↗
(s?: string)

Source from the content-addressed store, hash-verified

116}
117
118function parseIsoMs(s?: string): number | undefined {
119 if (!s) return undefined
120 const t = Date.parse(s)
121 return Number.isNaN(t) ? undefined : t
122}
123
124/** 解析时间范围为毫秒(可单边);显式参数优先,其次继承 context.timeFilter(秒→毫秒) */
125function parseEvidenceTimeRange(

Callers 1

handlerFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected