python timezone africa/johannesburg code example Example: pytz timezone list import pytz for tz in pytz.all_timezones: print tz