time_unit_labels: Time units as a string

time_unit_fullR Documentation

Time units as a string

Description

[Deprecated]

Usage

time_unit_full(x)

time_unit_plural(x, n = 2L)

time_unit_abbr(x)

Arguments

x

A time granule object (e.g., cal_gregorian$month(1L))

n

Numeric quantity used to select singular or plural form.

Details

These functions are superseded by unit_labels() and unit_scheme(), and are only kept as thin wrappers for backwards compatibility. time_unit_full() returns the full unit name template (e.g. "year{?/s}"), time_unit_plural() pluralises it for a quantity, and time_unit_abbr() returns the unit symbol (e.g. "Y").

Value

A string representing the time unit


mixtime documentation built on Nov. 18, 2026, 5:08 p.m.