Hex Core JS
    Preparing search index...

    Function formatAbsoluteRelativeTime

    • Formats a relative time as an absolute value using the given locale and options. Wraps Intl.NumberFormat but selects the locale automatically based on the user's locale.

      Parameters

      • value: number

        The value to format.

      • unit: RelativeTimeFormatUnit

        The unit of the value.

      • options: NumberLocaleOptions = {}

        The options to pass to Intl.NumberFormat.

      Returns string