| time_spec | R Documentation |
Compiles and validates time settings from explicit unit, origin, and zone parameters. v2.0 only supports explicit time_spec() calls; ctx fallback was removed.
time_spec(unit = NULL, origin = NULL, zone = "UTC")
unit |
Required time unit. One of "seconds", "minutes", "hours", "days", "weeks", "months", "years". |
origin |
Optional Date or POSIXct/POSIXt origin used for calendar-time conversion. Defaults to Unix epoch. |
zone |
Time zone used for calendar-time conversion (default "UTC"). |
An object of class time_spec with precomputed conversion constants.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.