FormatCalendarUnixOptions
The FormatCalendarUnixOptions type.
import type { FormatCalendarUnixOptions } from "@northguild/gmt/unix/format";Members
Section titled “Members”| Member | Type | Description |
|---|---|---|
epochUnit? |
"seconds" | "milliseconds" |
— |
reference? |
string | number |
— |
timeZone? |
string |
— |
timeStyle? |
"short" | "medium" | "full" |
— |
Definition
Section titled “Definition”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";}