()
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected