Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-s-barabash committed Jul 20, 2020
1 parent f37de2e commit 99cb2bf
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 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)

[![PyPI version](https://badge.fury.io/py/pytzsub.svg)](https://badge.fury.io/py/pytzsub)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

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

Expand Down Expand Up @@ -34,6 +34,15 @@ pip install pytzsub
True
```


```python
>>> from pytzsub import sub_timezone
>>> from pytz import timezone
>>> tz = timezone(sub_timezone('CA-QC'))
>>> type(tz)
<class 'pytz.tzfile.America/Toronto'>
```

## Links

- Time Zone Database https://www.iana.org/time-zones
Expand Down

0 comments on commit 99cb2bf

Please sign in to comment.