RelativeRoundingMethod
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.
import type { RelativeRoundingMethod } from "@northguild/gmt";Definition
Section titled “Definition”type RelativeRoundingMethod = "floor" | "ceil" | "round";Used by
Section titled “Used by”formatRelativeDateformatRelativeDateTimeformatRelativeTimeformatRelativeUnixformatRelativeUtcformatRelativeZoned
Source
Section titled “Source”Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.