import { mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { Timestamp } = mongo;
Methods
toExtendedJSON(): TimestampExtended
toJSON(): { $timestamp: string; }
[Symbol.for("Deno.customInspect")](): string
Static Methods
Returns a Timestamp for the given high and low bits. Each is assumed to use 32 bits.
fromExtendedJSON(doc: TimestampExtended): 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.