- OpenAI's ChatGPT: For expediting the process.
- devhammed: For the
devhammed_countries-flags-codes.json
file. - dmfilipenko: For the
dmfilipenko_timezones.json
file. - zeitverschiebung.net: For the timezone data with cities (resulting in
01_scraped-timezones-cities.json
). - flagpedia.net: For the emoji flags (resulting in
02_scraped-flags.json
).
💡 The file names indicate the process themselves.
👣 Steps
01: Scraped timezones and cities.
02: Scraped emoji flags.
03: Identified countries with multiple timezones.
04: First, I consulted ChatGPT and provided the content of 03_counted-countries.json
to ask for a Python dictionary with capital or widely accepted timezones for countries with multiple timezones. Afterward, I manually researched and verified the results and adapted the city names (values) to match the city names in the JSON from step 01.
05: Created a JSON file (includes multiple timezones for each country).
06: Used the Python dictionary from step 04 to create a JSON file with unique timezones for each country!
This work is done as part of my personal project, UtAZBot, an inline utility Telegram bot built with Rust, to display local times for all countries in sorted order.