Timestamp

class Timestamp(val value: ULong) : Comparable<Timestamp> (source)

Internal MongoDB timestamp used in the oplog.

Use the kotlin.time.Instant type for operations involving dates.

Constructors

Link copied to clipboard
constructor(instant: Instant, counter: UInt)

Constructs a timestamp from its Timestamp.instant and Timestamp.counter components.

constructor(value: ULong)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Incrementing counter.

Link copied to clipboard

Date and time represented by this Timestamp, with a precision of one second.

Link copied to clipboard

The raw value for this Timestamp.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Timestamp): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String