as_zoned_time | R Documentation |
as_zoned_time()
converts x
to a zoned-time. You generally convert
to a zoned time from either a sys-time or a naive time. Each are documented
on their own page:
sys-time
naive-time
There are also convenience methods for converting to a zoned time from native R date and date-time types:
dates (Date)
date-times (POSIXct / POSIXlt)
as_zoned_time(x, ...)
x |
An object to convert to a zoned-time. |
... |
These dots are for future extensions and must be empty. |
A zoned-time vector.
x <- as.Date("2019-01-01")
as_zoned_time(x, "Europe/London")
y <- as_naive_time(year_month_day(2019, 2, 1))
as_zoned_time(y, zone = "America/New_York")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.