MCPcopy Create free account
hub / github.com/Noumena-Network/code / parseISOString

Function parseISOString

src/utils/log.ts:286–299  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

284}
285
286function parseISOString(s: string): Date {
287 const b = s.split(/\D+/)
288 return new Date(
289 Date.UTC(
290 parseInt(b[0]!, 10),
291 parseInt(b[1]!, 10) - 1,
292 parseInt(b[2]!, 10),
293 parseInt(b[3]!, 10),
294 parseInt(b[4]!, 10),
295 parseInt(b[5]!, 10),
296 parseInt(b[6]!, 10),
297 ),
298 )
299}
300
301export function logMCPError(serverName: string, error: unknown): void {
302 try {

Callers 1

loadLogListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected