module BSON::DateTime

def to_bson(buffer = ByteBuffer.new)

Other tags:
    Since: - 2.1.0

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

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

Other tags:
    Example: Get the date time as encoded BSON. -
def to_bson(buffer = ByteBuffer.new)
  gregorian.to_time.to_bson(buffer)
end