Class BSON::Timestamp
In: lib/bson/types/timestamp.rb
Parent: Object

A class for representing BSON Timestamps. The Timestamp type is used by MongoDB internally; thus, it should be used by application developers for diagnostic purposes only.

Methods

==   []   each   new   to_s  

Included Modules

Enumerable

Attributes

increment  [R] 
seconds  [R] 

Public Class methods

Create a new BSON Timestamp.

@param [Integer] seconds The number of seconds @param increment

Public Instance methods

This is for backward-compatibility. Timestamps in the Ruby driver used to deserialize as arrays. So we provide an equivalent interface.

@deprecated

This method exists only for backward-compatibility.

@deprecated

[Validate]