Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method Bson.Timestamp.fromNumber
import { Bson } from "https://deno.land/x/exodus@0.1.8/deps.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

Returns

Timestamp