Skip to main content
The Deno 2 Release Candidate is here
Learn more
method TimeUtil.prototype.getTimestamp
import { TimeUtil } from "https://deno.land/x/sptaki@1.2.0/utils/TimeUtil.d.ts";

Gets the current timestamp in seconds in UTC.

Returns

number

The current timestamp in seconds since the Unix epoch in UTC.