World timezone definitions by country Subdivision (e.g., provinces or states)
Project description
pytzsub
World timezone definitions by country subdivision (e.g., provinces or states)
Accuracy of the database
The database is not authoritative, and it surely has errors. Corrections are welcome and encouraged.
Installation
As per usual:
pip install pytzsub
Examples
>>> from pytzsub import sub_timezone
>>> sub_timezone('US-CA')
'America/Los_Angeles'
>>> from pytzsub import all_code
>>> 'US-CA' in all_code()
True
Links
- Time Zone Database https://www.iana.org/time-zones
- ISO_3166-2 https://en.wikipedia.org/wiki/ISO_3166-2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytzsub-2020.6.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytzsub-2020.6.tar.gz.
File metadata
- Download URL: pytzsub-2020.6.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12479a857a49f9457cd54a0f99e46f2c36fe31f8002482e13075c2f1f1675c19
|
|
| MD5 |
ba7493efe890c74fba05460dd8eea2f9
|
|
| BLAKE2b-256 |
2e9518da42e0b13d69942a8684f46f8cc6fcb9e78ca35458609a9f75423a027c
|
File details
Details for the file pytzsub-2020.6-py3-none-any.whl.
File metadata
- Download URL: pytzsub-2020.6-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58c457ff69b773283086c505c6dd1a4ff8747f1b2235d37796b8c2931e2fc388
|
|
| MD5 |
c91da14cd0dc6faa580952549d68b739
|
|
| BLAKE2b-256 |
7cc269bda81cab6ef6bf56f0cd303d8310d8db27c592ee9c73461363f8f1e025
|