struct BSON::Timestamp

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

Constructor Detail

def self.new(t : UInt32, i : UInt32) #

Instance Method Detail

def i : UInt32 #

def t : UInt32 #

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


def to_json(builder : JSON::Builder) #