Generic function to extract the timezone from objects that have timezone information.
Examples
tz_name(Sys.time())
#> [1] "UTC"
tz_name(as.POSIXct("2024-06-15 12:00:00", tz = "America/New_York"))
#> [1] "America/New_York"
Generic function to extract the timezone from objects that have timezone information.
tz_name(Sys.time())
#> [1] "UTC"
tz_name(as.POSIXct("2024-06-15 12:00:00", tz = "America/New_York"))
#> [1] "America/New_York"