duration_precision: Precision: duration

View source: R/duration.R

duration_precisionR Documentation

Precision: duration

Description

duration_precision() extracts the precision from a duration object. It returns the precision as a single string.

Usage

duration_precision(x)

Arguments

x

⁠[clock_duration]⁠

A duration.

Value

A single string holding the precision of the duration.

Examples

duration_precision(duration_seconds(1))
duration_precision(duration_nanoseconds(2))
duration_precision(duration_quarters(1:5))

clock documentation built on Sept. 11, 2024, 8:39 p.m.