semvec/pypi-packages huggingface dataset:
pytzsub 2020.6
World timezone definitions by country Subdivision (e.g., provinces or states)
License: MIT License
Keywords: timezone,tzinfo,datetime,pytz,time

# pytzsub

[![Build Status](https://travis-ci.com/maxim-s-barabash/pytzsub.svg?branch=master)](https://travis-ci.com/maxim-s-barabash/pytzsub)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/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:

```shell
pip install pytzsub
```

## Examples

```python
>>> from pytzsub import sub_timezone
>>> sub_timezone('US-CA')
'America/Los_Angeles'
```

```python
>>> 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