as_time | R Documentation |
Convert to datetime
as_time(x, origin = as.POSIXct("1970-01-01", tz = "UTC"), tz = "UTC",
format = NULL)
x |
Object to be converted. |
origin |
Date-time object, or something which can be coerced by as.POSIXct(tz = "GMT") to such an object. |
tz |
A time zone specification to be used for the conversion. |
format |
Character string giving a date-time format as used by |
Other temporal functions: as_time_doy
x <- Sys.time()
x == as_time(as.numeric(x))
x <- 1:10
as_time(x)
x <- data.frame(t1 = 1:10, t2 = 1:10)
as_time(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.