srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
102 stars 54 forks source link

[Question/Discussion] Can we have time zone from a given Coordinates OR City/Country Name/Code? #100

Open omerdotdev opened 3 years ago

omerdotdev commented 3 years ago

What If we want to translate a query to a timezone. For Example: If I search for a location "Istanbul". Is it possible within the scope of this library?

Wiki: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Above wiki provide a list which also contains the country code field which relate to corresponding time zone.

Also, timezone provide zone location using only the zone name string in olson format. Tz Database Wiki i.e. 'America/Detroit'.

I am wondering if there is anyway we can translate simple city name or country codes to timezones. I think of a manual solution for my specific problem but if we could provide through a public dart library such as this.

Please advise.