Find Timezones Based on Country in Python

Find Timezones Based on Country in Python – you can use the library pytz to find timezones in python. If you want to find timezones based on country, use country_timezones().

Example :

import pytz
pytz.country_timezones('ID')

Result :

['Asia/Jakarta', 'Asia/Pontianak', 'Asia/Makassar', 'Asia/Jayapura']