# Get Local Time Zone

**URL:** <https://discuss.python.org/t/get-local-time-zone/4169>\
**Category:** Python Help\
**Created:** [May 11, 2020, 7:14pm UTC](https://discuss.python.org/t/get-local-time-zone/4169 "2020-05-11T19:14:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![EpicWink](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/epicwink/32/17968_2.png) [@EpicWink](https://discuss.python.org/u/EpicWink)\
**Post date:** [May 12, 2020, 12:56am UTC](https://discuss.python.org/t/get-local-time-zone/4169/3 "2020-05-12T00:56:25Z")

</div>

The `datetime.datetime.astimezone` method defaults to the local time-zone. You can use this to get the local time-zone name (using `datetime.timezone`'s names)

```python
import datetime

now = datetime.datetime.now()
local_now = now.astimezone()
local_tz = local_now.tzinfo
local_tzname = local_tz.tzname(local_now)
print(local_tzname)

```

---

_[View the full topic](https://discuss.python.org/t/get-local-time-zone/4169)._
