Skip to main content
Module

x/denomongo_unittest_utils/deps.ts>Bson.Timestamp

Unittest utilities for deno_mongo
Latest
class Bson.Timestamp
Re-export
import { Bson } from "https://deno.land/x/denomongo_unittest_utils@v0.5.3/deps.ts";
const { Timestamp } = Bson;

Constructors

new
Timestamp()
new
Timestamp(value: Long)
new
Timestamp(value: { t: number; i: number; })
new
Timestamp(value?: Long | { t: number; i: number; })

Methods

toJSON(): { $timestamp: string; }

Static Properties

readonly
MAX_VALUE

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.