Instagram explains how they create their media ID in this blog post
https://instagram-engineering.com/sharding-ids-at-instagram-1cf5a71e5a5c
Each of our IDs consists of: 41 bits for time in milliseconds (gives us 41 years of IDs with a custom epoch) 13 bits that represent the logical shard ID 10 bits that represent an auto-incrementing sequence, modulus 1024. This means we can generate 1024 IDs, per shard, per millisecond.
our ‘epoch’ begins on January 1st, 2011 not sure if that's the actual production value or only for the example
How can I get the timestamp back from a media ID?
I have this two media ids where I know the timestamp, but I need to extract it from others
2384288897814875714 2020-08-26T13:43:27Z
2383568809444681765 2020-08-25T13:52:46Z