Generic function to extract the timezone from objects that have timezone information.
Value
A character vector representing the timezone of each time point (e.g., "America/New_York", "UTC").
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"