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.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add timezone_country

With Flutter:

 $ flutter pub add timezone_country

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  timezone_country: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:timezone_country/timezone_country.dart';
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