Skip to content

UnixUnit

Unit accepted by epochUnit in unix-epoch functions. Determines whether a numeric value is interpreted as milliseconds or seconds.

import type { UnixUnit } from "@northguild/gmt";
type UnixUnit = "seconds" | "second" | "milliseconds" | "millisecond";

unix/validate/isValidUnixUnit.ts