Returns the timezone abbreviation (e.g., "EST", "PDT") for a given datetime in its specified timezone.
Examples
tz_abbreviation(Sys.time())
#> [1] "UTC"
tz_abbreviation(as.POSIXct("2024-01-15 12:00:00", tz = "America/New_York"))
#> [1] "EST"
Returns the timezone abbreviation (e.g., "EST", "PDT") for a given datetime in its specified timezone.
tz_abbreviation(Sys.time())
#> [1] "UTC"
tz_abbreviation(as.POSIXct("2024-01-15 12:00:00", tz = "America/New_York"))
#> [1] "EST"