Learn R Programming

clock (version 0.7.1)

time_point_precision: 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)

Value

A single string holding the precision of the time point.

Arguments

x

[clock_time_point]

A time point.

Examples

Run this code
time_point_precision(sys_time_now())
time_point_precision(as_naive_time(duration_days(1)))

Run the code above in your browser using DataLab