Struct BsonObjectID
Represents a BSON object id (Bson.Type.binData).
Constructors
Name | Description |
this
(bytes)
|
Constructs a new object ID from the given raw byte array.
|
Properties
Name | Type | Description |
timeStamp [get]
|
std.datetime.systime.SysTime | Extracts the time/date portion of the object ID.
|
valid [get]
|
bool | Returns true for any non-zero ID.
|
Methods
Name | Description |
createDateID
(time)
|
Creates a pseudo object ID that matches the given date.
|
fromString
(str)
|
Creates an on object ID from a string in standard hexa-decimal form.
|
generate
(time)
|
Generates a unique object ID.
|
opCast
()
|
|
opCmp
(other)
|
Allows for relational comparison of different IDs.
|
toString
()
|
Converts the ID to its standard hexa-decimal string representation.
|
Aliases
Name | Description |
fromHexString
|
Creates an on object ID from a string in standard hexa-decimal form.
|