timezone_to_country

Last updated:

0 purchases

timezone_to_country Image
timezone_to_country Images
Add to Cart

Description:

timezone to country

timezone_to_country #



Library for translation Time Zone Id to ISO 3166-1 alpha-2 code (e.g. 'Asia/Seoul' to 'KR')

Usage #
TimeZoneToCountry.getCountryCode('Asia/Seoul') // 'KR'
TimeZoneToCountry.getCountryCode('America/Los_Angeles') // 'US'
TimeZoneToCountry.getCountryCode('Europe/London') // 'GB'
copied to clipboard
String code = await TimeZoneToCountry.getLocalCountryCode();
print(code); // 'KR'
copied to clipboard
Source of Time Zone #
IANA - Time Zone Database - 2024a (https://github.com/eggert/tz/blob/2024a/zone.tab)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.