FormatRelativeUtcOptions
The FormatRelativeUtcOptions type.
import type { FormatRelativeUtcOptions } from "@northguild/gmt/utc/format";Members
Section titled “Members”| Member | Type | Description |
|---|---|---|
style? |
"long" | "short" | "narrow" |
— |
numeric? |
"always" | "auto" |
— |
largestUnit? |
RelativeUnit |
— |
roundingMethod? |
RelativeRoundingMethod |
— |
reference? |
string |
— |
timeZone? |
string |
— |
Definition
Section titled “Definition”interface FormatRelativeUtcOptions { style?: "long" | "short" | "narrow"; numeric?: "always" | "auto"; largestUnit?: RelativeUnit; /** * How the computed distance rounds to the display unit: "floor" rounds toward the * earlier boundary, "ceil" toward the later boundary, "round" (default) to the nearest — * matches current behavior when omitted. */ roundingMethod?: RelativeRoundingMethod; reference?: string; timeZone?: string;}