| tz_offset | R Documentation |
Returns the UTC offset for a given datetime in its specified timezone.
tz_offset(x, ...)
x |
A time class coercible to POSIXt with an associated time zone. |
... |
Additional arguments passed to methods. |
A mixtime duration vector of offsets from UTC in the same chronon
(e.g. seconds for POSIXt, days for dates, etc.)
tz_offset(as.POSIXct(Sys.time(), tz = Sys.timezone()))
tz_offset(as.POSIXct("2024-06-15 12:00:00", tz = "America/New_York"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.