timezone_country 1.0.0 copy "timezone_country: ^1.0.0" to clipboard
timezone_country: ^1.0.0 copied to clipboard

Convert IANA timezones to ISO 3166-1 country codes and back. Country names, flag emoji, alpha-2/alpha-3 support. Pure Dart, zero dependencies, O(1) const-map lookups.

1.0.0 #

  • Bidirectional mapping between IANA timezone IDs and ISO 3166-1 country codes.
  • Support for both alpha-2 (US) and alpha-3 (USA) country code formats.
  • Legacy timezone resolution (US/EasternAmerica/New_York).
  • Multi-country timezone support (Europe/Brussels['BE', 'LU', 'NL']).
  • Country names from Debian iso-codes ('JP''Japan').
  • Flag emoji from country code ('JP' → flag emoji, pure Unicode arithmetic).
  • String extensions for fluent conversions.
  • Validation and enumeration helpers.
  • O(1) lookups via compile-time const maps, zero runtime dependencies.
1
likes
160
points
128
downloads

Publisher

verified publishernikonov.im

Weekly Downloads

Convert IANA timezones to ISO 3166-1 country codes and back. Country names, flag emoji, alpha-2/alpha-3 support. Pure Dart, zero dependencies, O(1) const-map lookups.

Repository (GitHub)
View/report issues
Contributing

Topics

#timezone #country-code #iso-3166 #flag-emoji #i18n

Documentation

API reference

License

MIT (license)

More

Packages that depend on timezone_country