What is Twitter Snowflake Timestamp?
Twitter snowflake IDs contain an embedded timestamp in the first 42 bits. This timestamp represents milliseconds since Twitter's custom epoch (November 4, 2010, 01:42:54 UTC). Our decoder extracts this timestamp and converts it to standard Unix time.
How Snowflake Timestamp Decoding Works
- Extract Timestamp Bits: Right shift the ID by 22 bits to get the timestamp portion
- Add Twitter Epoch: Add 1288834974657 (Twitter's epoch in milliseconds)
- Convert to Date: Convert the Unix timestamp to a human-readable date
Example Timestamp Decodings
Snowflake ID: 1382350606417817604
Timestamp: 1618414206417 ms
Date: April 14, 2021, 15:30:06 UTC
Snowflake ID: 1800000000000000000
Timestamp: 1720612800000 ms
Date: July 10, 2024, 12:00:00 UTC
Why Decode Snowflake Timestamps?
1. Find exact creation time of tweets and accounts
2. Sort Twitter data chronologically
3. Analyze temporal patterns in Twitter activity
4. Verify tweet authenticity by checking timestamps