powered by
Translate a vector of timestamps.
ttime(x, from = "datetime", to = "numeric", tz = "", strip.attr = TRUE, format = "%Y-%m-%d")
numeric
character: datetime, numeric or character
datetime
character
character: numeric, Date or POSIXct
Date
POSIXct
logical: strip attributes; in particular, timezone information
Enrico Schumann
ttime (‘translate time’) converts timestamps between formats.
ttime
ts_table
ttime(Sys.Date()) ttime(17397, from = "numeric", to = "Date")
Run the code above in your browser using DataLab