Skip to main content
Latest
class Bson.Timestamp
import { Bson } from "https://deno.land/x/exodus@0.1.8/deps.ts";
const { Timestamp } = Bson;

Constructors

new
Timestamp(low: Long)
new
Timestamp(low: number, high: number)

Properties

_bsontype: "Timestamp"

Methods

toJSON(): { $timestamp: string; }

Static Properties

readonly
MAX_VALUE: Long

Static Methods

fromBits(lowBits: number, highBits: number): Timestamp

Returns a Timestamp for the given high and low bits. Each is assumed to use 32 bits.

fromInt(value: number): Timestamp

Returns a Timestamp represented by the given (32-bit) integer value.

fromNumber(value: number): Timestamp

Returns a Timestamp representing the given number value, provided that it is a finite number. Otherwise, zero is returned.

fromString(str: string, optRadix: number): Timestamp

Returns a Timestamp from the given string, optionally using the given radix.