BSONTimestamp

Timestamp companion

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(value: Long): BSONTimestamp

Returns a BSONTimestamp

Returns a BSONTimestamp

def apply(time: Int, ordinal: Int): BSONTimestamp

Returns the timestamp corresponding to the given time and ordinal.

Returns the timestamp corresponding to the given time and ordinal.

Value parameters:
ordinal

an incrementing ordinal for operations within a same second

time

the 32bits time value (seconds since the Unix epoch)

Returns the string representation for the given BSONTimestamp.

Returns the string representation for the given BSONTimestamp.

def unapply(that: Any): Option[Long]

Extracts the timestamp value if that's a BSONTimestamp.

Extracts the timestamp value if that's a BSONTimestamp.