Sign up for Free !!
World's first open source developer community with
Ticketing System
I would like to know what are all the possible values for the timezone argument in the Python library pytz. How to do it?
For all the available timezones you can use :: pytz.all_timezones:
pytz.all_timezones
In [40]: import pytz In [41]: pytz.all_timezones Out[42]: ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', ...]
For common time zones :::: you can use pytz.common_timezones:
pytz.common_timezones
In [45]: len(pytz.common_timezones) Out[45]: 403 In [46]: len(pytz.all_timezones) Out[46]: 563
Please Login/Register to write your answer !!!
For all the available timezones you can use ::
pytz.all_timezones
:For common time zones :::: you can use
pytz.common_timezones
: