Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web_bson/src/timestamp.ts>Timestamp.fromNumber

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
method Timestamp.fromNumber
import { Timestamp } from "https://deno.land/x/web_bson@v0.2.5/src/timestamp.ts";

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

Parameters

value: number