class Bson.Timestamp
extends LongWithoutOverridesClass
Re-export
import { Bson } from "https://deno.land/x/mongo@v0.31.0/mod.ts";
const { Timestamp } = Bson;
Methods
toExtendedJSON(): TimestampExtended
toJSON(): { $timestamp: string; }
[Symbol.for("Deno.customInspect")](): string
Static Methods
fromExtendedJSON(doc: TimestampExtended): Timestamp
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.