Top "Pytz" questions

pytz brings the Olson tz database into Python.

Is there a list of Pytz Timezones?

I would like to know what are all the possible values for the timezone argument in the Python library pytz. …

python django pytz
Could not find a version that satisfies the requirement pytz

I have a problem installing pytz in virtualenv. Downloading/unpacking pytz Could not find a version that satisfies the requirement …

python pip virtualenv pytz
How can I remove a pytz timezone from a datetime object?

Is there a simple way to remove the timezone from a pytz datetime object? e.g. reconstructing dt from dt_…

python timezone pytz
Converting python datetime to timestamp and back in UTC still uses local timezone

I'm working with a code that gives me utc timestamps and I want to convert them to appropriate datetimes. Unfortunately …

python datetime time pytz
How to get system timezone setting and pass it to pytz.timezone?

We can use time.tzname get a local timezone name, but that name is not compatible with pytz.timezone. In …

python timezone pytz
How to add timezone into a naive datetime instance in python

I've got a datetime which has no timezone information. I'm now getting the timezone info and would like to add …

python datetime timezone pytz
'ImportError: No module named pytz' when trying to import pylab?

As far as I can tell, I don't even need pytz for what I'm doing. I'm re-learning python for image …

python matplotlib importerror pytz
Python - Setting a datetime in a specific timezone (without UTC conversions)

Just to be clear, this is python 2.6, I am using pytz. This is for an application that only deals with …

python datetime pst pytz
Getting the correct timezone offset in Python using local timezone

Ok let me first start by saying my timezone is CET/CEST. The exact moment it changes from CEST to …

python timezone pytz timezone-offset
How do I get the UTC time of "midnight" for a given timezone?

The best I can come up with for now is this monstrosity: >>> datetime.utcnow() \ ... .replace(tzinfo=pytz.…

python datetime timezone utc pytz