This question has already been answered:

I think the second argument is the time (since 1970). And the first thing that goes, I can not understand. I just want to save time from the 1970s.

http://php.net/manual/en/mongodb-bson-timestamp.construct.php

Reported as a duplicate by the participants cheops , aleksandr barakin , pavel , dirkgntly , lexxl 4 Aug '16 at 7:28 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    integer denoting the incrementing ordinal for operations within a given second.

    there is written quite understandable increment for sorting, within a second. The fact is that you can write several records in one and the same second and the timestamp will be the same, and when sorting it will not be clear what record to display first, with an indication of increment sorting by date will also be done by increment within a second.