Skip to main content

World timezone definitions by country Subdivision (e.g., provinces or states)

Project description

pytzsub

Build Status License: MIT

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

Module test

python -m pytzsub -v

Time Zone Database

https://www.iana.org/time-zones

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytzsub-2020a5.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytzsub-2020a5-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pytzsub-2020a5.tar.gz.

File metadata

  • Download URL: pytzsub-2020a5.tar.gz
  • Upload date:
  • Size: 6.5 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

Hashes for pytzsub-2020a5.tar.gz
Algorithm Hash digest
SHA256 ccc36dd198e62846ff3205fdb2a58ad32c72b3335ca475943f875d46d8f24cdd
MD5 7871b74c631b1523425b66a64df37f39
BLAKE2b-256 32649dae0c580b741727401de185124b146a55a92c0d548eaa7535dc2f424067

See more details on using hashes here.

File details

Details for the file pytzsub-2020a5-py3-none-any.whl.

File metadata

  • Download URL: pytzsub-2020a5-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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

Hashes for pytzsub-2020a5-py3-none-any.whl
Algorithm Hash digest
SHA256 34f4043ab432e6b51798106217299662a929757e5227454791f97ed307b86477
MD5 2d3d9241822b72b82e690981dc58ef1e
BLAKE2b-256 c3ff0fc42d94a67b6b2289cf569643669e666ad7b02932231c504b52161cbb92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page