Struct BsonObjectID
Represents a BSON object id (Bson.Type.binData
).
Constructors
Name | Description |
---|---|
this
|
Constructs a new object ID from the given raw byte array. |
Properties
Name | Type | Description |
---|---|---|
timeStamp
[get]
|
std.datetime.SysTime |
Extracts the time/date portion of the object ID. |
valid
[get]
|
bool |
Returns true for any non-zero ID. |
Methods
Name | Description |
---|---|
createDateID
|
Creates a pseudo object ID that matches the given date .
|
fromString
|
Creates an on object ID from a string in standard hexa-decimal form. |
generate
|
Generates a unique object ID. |
opCast
|
|
opCmp
|
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. |
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.