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

Function humanizeDate

frontend/src/utils/v1/common.ts:23–25  ·  view source on GitHub ↗
(date: Date | undefined)

Source from the content-addressed store, hash-verified

21};
22
23export const humanizeDate = (date: Date | undefined) => {
24 return humanizeTs(Math.floor((date?.getTime() ?? 0) / 1000));
25};
26
27// The list of supported encodings.
28// Reference: https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings

Callers

nothing calls this directly

Calls 1

humanizeTsFunction · 0.90

Tested by

no test coverage detected