timeZonesForCountry function Time zone lookups

List<ZoneDescription> timeZonesForCountry(
  1. String country
)

Provides a list of time zones relevant to a specific country.

The country arg is an ISO 3166 2-letter code. For example, US = United States, CA = Canada, EE = Estonia, etc.

Implementation

List<ZoneDescription> timeZonesForCountry(String country) =>
    TimeZoneDatabase().descriptionsByCountry[country.toUpperCase()].toList();