Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mongo/mod.ts>Bson.Timestamp.fromNumber

MongoDB driver for Deno
Very Popular
Go to Latest
method Bson.Timestamp.fromNumber
import { Bson } from "https://deno.land/x/mongo@v0.31.2/mod.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