Skip to main content
Module

x/web_bson/mod.ts>ObjectId.createFromTime

web_bson is a fork from mongodb/js-bson
Go to Latest
method ObjectId.createFromTime
Re-export
import { ObjectId } from "https://deno.land/x/web_bson@v0.2.4/mod.ts";

Creates an ObjectId from a second based number, with the rest of the ObjectId zeroed out. Used for comparisons or sorting the ObjectId.

Parameters

time: number
  • an integer number representing a number of seconds.