Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Bson.Timestamp.fromString
Re-export
import { Bson } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
const { Timestamp } = Bson;

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

Parameters

str: string
  • the textual representation of the Timestamp.
optRadix: number
  • the radix in which the text is written.