Learn R Programming

clock (version 0.7.1)

calendar_precision: Precision: calendar

Description

calendar_precision() extracts the precision from a calendar object. It returns the precision as a single string.

Usage

calendar_precision(x)

Value

A single string holding the precision of the calendar.

Arguments

x

[clock_calendar]

A calendar.

Examples

Run this code
calendar_precision(year_month_day(2019))
calendar_precision(year_month_day(2019, 1, 1))
calendar_precision(year_quarter_day(2019, 3))

Run the code above in your browser using DataLab