Matched locations can be filtered by country name, city name or region code

timezone.to_abbr(input, country_or_city = NULL)

Examples

# Using offset value timezone.to_abbr(+8)
#> [1] "+08" "AWST" "CST" "HKT" "WITA"
# If filtered by region code timezone.to_abbr(+8, country_or_city = "HK")
#> [1] "HKT"
# If filtered by country name timezone.to_abbr(+8, country_or_city = "Vietnam")
#> [1] "+08"
# If filtered by city name timezone.to_abbr(+8, country_or_city = "Shanghai")
#> [1] "CST"
# Using offset string timezone.to_abbr("-0500")
#> [1] "-05" "EST" "CDT" "CWT" "CPT" "MDDT" "CST"
# If filtered by region code timezone.to_abbr("-0500", country_or_city = "US")
#> [1] "EST" "CDT" "CWT" "CPT"