dt2_format_time_relative: Relative time using moment.fromNow(), with locale

View source: R/dt2_formats.R

dt2_format_time_relativeR Documentation

Relative time using moment.fromNow(), with locale

Description

Relative time using moment.fromNow(), with locale

Usage

dt2_format_time_relative(options = list(), col_specs, locale = "pt-br")

Arguments

options

list of options (returned updated)

col_specs

names or indices to format

locale

e.g. "pt-br" (requires moment-with-locales)

Value

The modified options list with an updated columnDefs entry.


DT2 documentation built on June 14, 2026, 9:06 a.m.