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

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

Parameters

value: number