time_get | R Documentation |
Get components of a date-time object
time_get(
time,
components = c("year", "month", "yday", "mday", "wday", "hour", "minute", "second"),
week_start = getOption("timechange.week_start", 1)
)
time |
a date-time object |
components |
a character vector of components to return. Component is one of "year", "month", "yday", "day", "mday", "wday", "hour", "minute", "second" where "day" is the same as "mday". |
week_start |
week starting day (Default is 1, Monday). Set
|
A data.frame of the requested components
x <- as.POSIXct("2019-02-03")
time_get(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.