Skip to content

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.