MCPcopy Create free account
hub / github.com/MathMan05/Fermi / getUnixTime

Function getUnixTime

src/webpage/snowflake.ts:6–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4 this.id = id;
5 }
6 getUnixTime(): number {
7 return SnowFlake.stringToUnixTime(this.id);
8 }
9 static stringToUnixTime(str: string) {
10 try {
11 return Number((BigInt(str) >> 22n) + 1420070400000n);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected