Skip to main content
Module

x/atlas_sdk/deps.ts>ObjectId.createFromTime

TypeSafe MongoDB Atlas Data API SDK for Deno, Deno Deploy and Node.js
Latest
method ObjectId.createFromTime
import { ObjectId } from "https://deno.land/x/atlas_sdk@v1.1.3/deps.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.