Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

format_ISO8601_precision_check

Provide a format for ISO8601 dates and times with the requested precision.


Description

Provide a format for ISO8601 dates and times with the requested precision.

Usage

format_ISO8601_precision_check(precision, max_precision, usetz = FALSE)

Arguments

precision

The amount of precision to represent with substrings of "ymdhms", as "y"ear, "m"onth, "d"ay, "h"our, "m"inute, and "s"econd. (e.g. "ymdhm" would show precision through minutes. When NULL, max_precision is returned. When precision is more precise than max_precision, a warning is given and max_precision is returned.

max_precision

The maximum precision allowed to be output.

usetz

Include the timezone in the output format


lubridate

Make Dealing with Dates a Little Easier

v1.7.10
GPL (>= 2)
Authors
Vitalie Spinu [aut, cre], Garrett Grolemund [aut], Hadley Wickham [aut], Ian Lyttle [ctb], Imanuel Costigan [ctb], Jason Law [ctb], Doug Mitarotonda [ctb], Joseph Larmarange [ctb], Jonathan Boiser [ctb], Chel Hee Lee [ctb], Google Inc. [ctb, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.