This should work:
import time
time.tzname
time.tzname
returns a tuple of two strings: The first is the name of the local non-DST timezone, the second is the name of the local DST timezone.
Example return: ('MST', 'MDT')
More Related Contents:
- Creating a range of dates in Python
- How do I calculate the date six months from the current date using the datetime Python module?
- Convert pandas timezone-aware DateTimeIndex to naive timestamp, but in certain timezone
- How to compare two dates?
- Plotting dates on the x-axis with Python’s matplotlib
- datetime dtypes in pandas read_csv
- Generate a random date between two other dates
- How do I get the UTC time of “midnight” for a given timezone?
- pandas dataframe groupby datetime month
- ISO time (ISO 8601) in Python
- pytz localize vs datetime replace
- Find the end of the month of a Pandas DataFrame Series
- Generate a list of datetimes between an interval
- Convert Year/Month/Day to Day of Year in Python
- How to get day name from datetime
- python converting string in localtime to UTC epoch timestamp
- Convert date from excel in number format to date format python [duplicate]
- Pandas: Datetime Improperly selecting day as month from date [duplicate]
- Convert String with month name to datetime
- Generate RFC 3339 timestamp in Python [duplicate]
- Pandas converting row with unix timestamp (in milliseconds) to datetime
- How to calculate difference between two dates in weeks in python
- Datetime conversion – How to extract the inferred format?
- Formatting “yesterday’s” date in python
- Get UTC offset from time zone name in python
- Python: Datetime to season
- finding last business day of a month in python
- Python strptime parsing year without century: assume prior to this year?
- Pandas datetimes with different formats in the same column
- Get weekday/day-of-week for Datetime column of DataFrame