Skip to content

FormatUnixOptions

The FormatUnixOptions type.

import type { FormatUnixOptions } from "@northguild/gmt/unix/format";
Member Type Description
epochUnit? "seconds" | "milliseconds"
timeZone? string
includeTimeZoneName? boolean
interface FormatUnixOptions extends Intl.DateTimeFormatOptions {
epochUnit?: "milliseconds" | "seconds";
timeZone?: string;
// When true, format via ZonedDateTime so the localized timezone name is
// included for full/long styles. Defaults to false (matches the original
// behavior of formatting a wall-clock PlainDateTime).
includeTimeZoneName?: boolean;
}

unix/format/formatUnix.ts