Top "Pytz" questions

pytz brings the Olson tz database into Python.

Unix timestamp to datetime in django with timezone

I have a javascript calendar that is sending me a unixtimestamp. I am in Singapore. I want this timestamp to …

django datetime timezone pytz
Use Python to find out if a timezone currently in daylight savings time

We have a server that runs on GMT time. I need to write a Python script that determines if it's …

python time timezone dst pytz
datetime and timezone conversion with pytz - mind blowing behaviour

I'm trying to convert timezone aware datetime object to UTC and then back to it's original timezone. I have a …

python django datetime timezone pytz
Python pytz: convert local time to utc. Localize doesn't seem to convert

I have a database that stores datetime as UTC. I need to look up info from a particular time, but …

python timezone pytz
Timezone Information Missing in pytz?

I'm having a very weird problem with Python's pytz: it seems to have an incomplete catalog of timezones on my …

python timezone pytz
How to convert datetime.date.today() to UTC time?

How to make sure the datetime.date.today() is converted to UTC time? This is my code so far: #today : 2014…

python pytz
Localizing Epoch Time with pytz in Python

Im working on converting epoch timestamps to dates in different timezones with pytz. What I am trying to do is …

python datetime timezone epoch pytz
Python: How to convert a timezone aware timestamp to UTC without knowing if DST is in effect

I am trying to convert a naive timestamp that is always in Pacific time to UTC time. In the code …

python datetime dst pytz
I am getting 'ZZ' as country code when using pytz

I am using App engine, and I'm trying to get the time zone from the request. However when on local …

google-app-engine python-2.7 pytz
Python string to Django timezone (aware datetime)

TL;DR; How to convert 2016-01-01 to Django timezone? Full version: I receive a query string parameter from a …

python django datetime timezone pytz