MCPcopy Create free account
hub / github.com/AnswerOverflow/AnswerOverflow / getTimestamp

Function getTimestamp

packages/core/src/sitemap.ts:70–72  ·  view source on GitHub ↗
(snowflake: Snowflake)

Source from the content-addressed store, hash-verified

68
69const EPOCH = BigInt(1420070400000);
70function getTimestamp(snowflake: Snowflake) {
71 return Number((BigInt(snowflake) >> BigInt(22)) + EPOCH);
72}
73export function getDate(snowflake: Snowflake) {
74 return new Date(getTimestamp(snowflake));
75}

Callers 1

getDateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected