vibe.d beta banner
get vibe.d
0.7.30

Function BsonObjectID.generate

Generates a unique object ID.

By default it will use Clock.currTime(UTC()) as the timestamp which guarantees that BsonObjectIDs are chronologically sorted.

Prototype

static BsonObjectID generate(
  const(std.datetime.SysTime) time = currTime(opCall())
);
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License