as-zoned-time-posixt | R Documentation |
This is a POSIXct/POSIXlt method for the as_zoned_time()
generic.
Converting from one of R's native date-time classes (POSIXct or POSIXlt)
will retain the time zone of that object. There is no zone
argument.
## S3 method for class 'POSIXt'
as_zoned_time(x, ...)
x |
A date-time. |
... |
These dots are for future extensions and must be empty. |
A zoned-time.
x <- as.POSIXct("2019-01-01", tz = "America/New_York")
as_zoned_time(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.