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

x/atlas_sdk/mod.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/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.