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

x/aether/deps.ts>Bson.ObjectId.createFromTime

A Deno library to interface with the Discord API
Latest
method Bson.ObjectId.createFromTime
Re-export
import { Bson } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { ObjectId } = Bson;

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.