MCPcopy Create free account
hub / github.com/ShipSecAI/studio / fromNanoseconds

Method fromNanoseconds

backend/src/trace/log-stream.service.ts:413–422  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

411 }
412
413 private fromNanoseconds(value: string): string {
414 let parsed: bigint;
415 try {
416 parsed = BigInt(value);
417 } catch {
418 parsed = BigInt(Date.now()) * 1000000n;
419 }
420 const millis = Number(parsed / 1000000n);
421 return new Date(millis).toISOString();
422 }
423
424 private requireOrganizationId(auth: AuthContext | null): string {
425 const organizationId = auth?.organizationId;

Callers 3

queryLokiMethod · 0.95
queryLokiTimeRangeMethod · 0.95
queryLokiRangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected