struct BSON::Timestamp
- BSON::Timestamp
- Struct
- Value
- Object
Overview
Timestamp - Special internal type used by MongoDB replication and sharding. First 4 bytes are an increment, second 4 are a timestamp.
Defined in:
Constructors
Instance Method Summary
- #i : UInt32
- #t : UInt32
-
#to_canonical_extjson(builder : JSON::Builder)
Serialize to a canonical extended json representation.
- #to_json(builder : JSON::Builder)
Constructor Detail
Instance Method Detail
def to_canonical_extjson(builder : JSON::Builder)
#
Serialize to a canonical extended json representation.
NOTE see https://github.com/mongodb/specifications/blob/master/source/extended-json.rst