UNPKG

@northguild/gmt

Version:

Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.

7 lines • 419 B
/** * How the `formatRelative*` functions round a fractional distance to a whole number of the unit * displayed. It is applied to the signed value, where a past distance is negative: `"floor"` * rounds toward negative infinity, `"ceil"` toward positive infinity, and `"round"` to the nearest * whole number, a half going toward positive infinity. */ export type RelativeRoundingMethod = "floor" | "ceil" | "round";