Create a new ObjectID instance
Name Type Descriptionid
string | number
Can be a 24 byte hex string, 12 byte binary string or a Number.
generationTime
number
The generation time of this ObjectId instance
Creates an ObjectID from a hex string representation of an ObjectID.
Name Type DescriptionhexString
string
create a ObjectID from a passed in 24 byte hexstring.
Creates an ObjectID from a second based number, with the rest of the ObjectID zeroed out. Used for comparisons or sorting the ObjectID.
Name Type Descriptiontime
number
an integer number representing a number of seconds.
Checks if a value is a valid bson ObjectId
Compares the equality of this ObjectID with otherID
.
otherID
object
ObjectID instance to compare against.
Generate a 12 byte id buffer used in ObjectID's
Name Type Descriptiontime
number optional
optional parameter allowing to pass in a second based timestamp.
Returns the generation date (accurate up to the second) that this ID was generated.
Return the ObjectID id as a 24 byte hex string representation
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4