MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / getTimestamp

Function getTimestamp

packages/ui/src/utils/snowflake.tsx:15–17  ·  view source on GitHub ↗
(snowflake: Snowflake)

Source from the content-addressed store, hash-verified

13}
14
15export function getTimestamp(snowflake: Snowflake) {
16 return Number((BigInt(snowflake) >> BigInt(22)) + EPOCH);
17}
18
19export function getDate(snowflake: Snowflake) {
20 return new Date(getTimestamp(snowflake));

Callers 2

getDateFunction · 0.70
parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected