vibe.d beta banner
get vibe.d
0.9.3

Asynchronous I/O that doesn’t get in your way, written in D

Struct BsonObjectID

Represents a BSON object id (Bson.Type.binData).

struct BsonObjectID ;

Constructors

NameDescription
this () Constructs a new object ID from the given raw byte array.

Properties

NameTypeDescription
timeStamp[get] std.datetime.systime.SysTimeExtracts the time/date portion of the object ID.
valid[get] boolReturns true for any non-zero ID.

Methods

NameDescription
createDateID () 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 () 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

NameDescription
fromHexString Creates an on object ID from a string in standard hexa-decimal form.
Authors

Sönke Ludwig

Copyright

© 2012-2015 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.