I know how the _id column contains a representation of timestamp when the document has been inserted into the collection. here is an online utility to convert it to timestam
For mongo version >= 3.4
, the Objectid generation is changed a little.
Its structs are:
So the first 4 bytes are still the seconds since the Unix epoch, it is still almost ascending but not strictly.
https://docs.mongodb.com/manual/reference/bson-types/#objectid