getNumericDate
import { getNumericDate } from "https://raw.githubusercontent.com/timonson/djwt/master/mod.ts";
This helper function simplifies setting a NumericDate
. It takes either a
Date
object or a number
(in seconds) and returns the number
of seconds
from 1970-01-01T00:00:00Z UTC until the specified UTC date/time.
function getNumericDate(exp: number | Date): number;