How does Mongodb get the current timestamp

how to effectively get the current timestamp

Sep.19,2021

ISODate().valueOf();

result:

1540530928417
The client of

mongodb is the js, timestamp new Date (). GetTime () . There is no difference

Menu