Skip to main content
Module

x/ui7/mod.ts>timestamp

Generate UUIDv7 identifiers in JavaScript (or TypeScript)
Latest
variable timestamp
import { timestamp } from "https://deno.land/x/ui7@v0.2.3/mod.ts";

Return the timestamp portion of the UUID (a millisecond-precision UNIX timestamp, as returned by Date.now).

Throws a ParseError if no timestamp can be extracted.

type

(uuid: string) => number