How it works
An X post id is a 64-bit Snowflake: a millisecond timestamp in the high bits, followed by a machine id and a sequence number. The formula is (id >> 22) + 1288834974657, which gives Unix time in milliseconds. The same arithmetic is useful for sorting posts by time or for paging a search with sinceId and untilId.
Need the post itself — text, author, counts, replies? Weir’s API returns it from the same id: see how to get tweets with Python or the Twitter API alternative.