Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method ObjectId.createFromTime
import { ObjectId } from "https://deno.land/x/darkflare@v7.2.6/realm/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.