MCPcopy Index your code
hub / github.com/scality/cloudserver / timestampToDateTime643

Function timestampToDateTime643

lib/utilities/serverAccessLogger.js:460–467  ·  view source on GitHub ↗
(unixMS)

Source from the content-addressed store, hash-verified

458}
459
460function timestampToDateTime643(unixMS) {
461 if (unixMS === undefined || unixMS === null) {
462 return null;
463 }
464
465 // clickhouse DateTime64(3) expects "seconds.milliseconds" (string type).
466 return (unixMS / 1000).toFixed(3);
467}
468
469/**
470 * Builds a log entry object with common fields

Callers 2

buildLogEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected