Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Snowflake.prototype.timestampFrom
import { Snowflake } from "https://deno.land/x/snowflakes@1.0.0/Snowflake.ts";

Retrieves the timestamp field's value from a snowflake.

Parameters

id: string | bigint

The snowflake to get the timestamp value from.

Returns

number

The UNIX timestamp that is stored in id.