Skip to content

FormatCalendarUnixOptions

The FormatCalendarUnixOptions type.

import type { FormatCalendarUnixOptions } from "@northguild/gmt/unix/format";
Member Type Description
epochUnit? "seconds" | "milliseconds"
reference? string | number
timeZone? string
timeStyle? "short" | "medium" | "full"
interface FormatCalendarUnixOptions {
epochUnit?: "milliseconds" | "seconds";
reference?: string | number;
/**
* IANA timezone used for both the calendar-day comparison and the
* rendered clock time. Resolved via `normalizeTimeZone` — `"local"` for
* the system zone, an invalid/omitted value falls back to `"UTC"`.
*/
timeZone?: string;
/** `Intl.DateTimeFormatOptions` `timeStyle` for the time-of-day half. */
timeStyle?: "short" | "medium" | "full";
}

unix/format/formatCalendarUnix.ts