On this page本页内容
ObjectId.
getTimestamp
Returns the timestamp portion of the ObjectId() as a Date.
ObjectId()
The following example calls the getTimestamp() method on an ObjectId():
getTimestamp()
ObjectId("507c7f79bcf86cd7994f6c0e").getTimestamp()
This will return the following output:
ISODate("2012-10-15T21:26:17Z")
See also参阅
ObjectId BSON Type