Get components of a date-time object
a date-time object
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 starting day (Default is 1, Monday). Set
timechange.week_start option to change this globally.
A data.frame of the requested components
x <- as.POSIXct("2019-02-03")
time_get(x)
#> year month yday mday wday hour minute second
#> 1 2019 2 34 3 6 0 0 0