Last active
April 2, 2024 12:25
-
-
Save s-hiiragi/99607a61abc10f7cfa0086f81794185a to your computer and use it in GitHub Desktop.
Convert Twitter Status Id to DateTime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const status_id = BigInt(prompt('Input Status Id', '')); | |
const timestamp = Number((status_id >> 22n) + 1288834974657n); | |
const s = new Date(timestamp).toLocaleString(); | |
console.log(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment