time_point_precision: Precision: time point

View source: R/time-point.R

time_point_precisionR Documentation

Precision: time point

Description

time_point_precision() extracts the precision from a time point, such as a sys-time or naive-time. It returns the precision as a single string.

Usage

time_point_precision(x)

Arguments

x

⁠[clock_time_point]⁠

A time point.

Value

A single string holding the precision of the time point.

Examples

time_point_precision(sys_time_now())
time_point_precision(as_naive_time(duration_days(1)))

clock documentation built on May 31, 2023, 9:39 p.m.