Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pytz timezone list

import pytz
for tz in pytz.all_timezones:
    print tz
Comment

pytz timezone list

countries = [
  {'timezones': ['Europe/Paris'], 'code': 'FR', 'continent': 'Europe', 'name': 'France', 'capital': 'Paris'}
  {'timezones': ['Africa/Kampala'], 'code': 'UG', 'continent': 'Africa', 'name': 'Uganda', 'capital': 'Kampala'},
  {'timezones': ['Asia/Colombo'], 'code': 'LK', 'continent': 'Asia', 'name': 'Sri Lanka', 'capital': 'Sri Jayewardenepura Kotte'},
  {'timezones': ['Asia/Riyadh'], 'code': 'SA', 'continent': 'Asia', 'name': 'Saudi Arabia', 'capital': 'Riyadh'},
  {'timezones': ['Africa/Luanda'], 'code': 'AO', 'continent': 'Africa', 'name': 'Angola', 'capital': 'Luanda'},    
  {'timezones': ['Europe/Vienna'], 'code': 'AT', 'continent': 'Europe', 'name': 'Austria', 'capital': 'Vienna'},
  {'timezones': ['Asia/Calcutta'], 'code': 'IN', 'continent': 'Asia', 'name': 'India', 'capital': 'New Delhi'},
  {'timezones': ['Asia/Dubai'], 'code': 'AE', 'continent': 'Asia', 'name': 'United Arab Emirates', 'capital': 'Abu Dhabi'},
  {'timezones': ['Europe/London'], 'code': 'GB', 'continent': 'Europe', 'name': 'United Kingdom', 'capital': 'London'},
]
Comment

PREVIOUS NEXT
Code Example
Python :: flask run on ip and port 
Python :: how to get the amount of nan values in a data fram 
Python :: adaptive thresholding with opencv python 
Python :: django datetimefield default 
Python :: dict godot 
Python :: python pickle example 
Python :: how to map array of string to int in python 
Python :: not importing local folder python 
Python :: dataclass post init 
Python :: install chromedriver ubuntu python 
Python :: how to remove all characters from a string in python 
Python :: python format float 
Python :: python namedtuple 
Python :: networkx create graph from dataframe 
Python :: replace multiple spaces with single space python 
Python :: raw string 
Python :: django populate choice field from database 
Python :: mean code python 
Python :: how to do swapping in python without sort function 
Python :: Scrape the text of all paragraph in python 
Python :: show all rows with nan for a column value pandas 
Python :: python set current working directory to script location python 
Python :: python armstrong number 
Python :: max of 2d array python 
Python :: launch google chrome using python 
Python :: decode base64 with python 
Python :: replace url with text python 
Python :: two input number sum in python 
Python :: pandas filter rows by value in list 
Python :: skip rows in pandas read excel 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =