MCPcopy Create free account
hub / github.com/bytebase/bytebase / getTimestampMs

Function getTimestampMs

frontend/src/react/components/task-run-log/model.ts:58–61  ·  view source on GitHub ↗
(timestamp?: Timestamp)

Source from the content-addressed store, hash-verified

56}
57
58export const getTimestampMs = (timestamp?: Timestamp): number => {
59 if (!timestamp) return 0;
60 return Number(timestamp.seconds) * 1000 + timestamp.nanos / 1000000;
61};
62
63export const formatTime = (timestamp?: Timestamp): string => {
64 if (!timestamp) return "--:--:--.---";

Callers 7

formatTimeFunction · 0.85
groupEntriesByTypeFunction · 0.85
getUniqueReplicaIdsFunction · 0.85
getEntryTimeRangeFunction · 0.85
getCommandDurationFunction · 0.85
buildDisplayItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected