class BSON::Timestamp

def to_bson(buffer = ByteBuffer.new)

Other tags:
    Since: - 2.0.0

Other tags:
    See: http://bsonspec.org/#/specification -

Returns:
  • (BSON::ByteBuffer) - The buffer with the encoded object.

Other tags:
    Example: Get the timestamp as BSON. -
def to_bson(buffer = ByteBuffer.new)
  buffer.put_uint32(increment)
  buffer.put_uint32(seconds)
end