pytz
How to determine when DST starts or ends in a specific location in Python? [duplicate]
This question already has an answer here: 开发者_开发知识库 get the DST boundaries of a given timezone in python[详细]
2023-04-09 10:39 分类:问答Converting correctly between tz unaware time, UTC and working with timezones in python
I have a string in the form \'20111014T090000\' with associated timezone ID (TZID=America/Los_Angeles) and I want[详细]
2023-04-08 02:03 分类:问答Why is pytz offset incorrect?
I have a python application that is sending email reminders to users in different timezones. The start time is set to a given date and time, and the reminder may be set to some number of minutes befor[详细]
2023-04-03 02:24 分类:问答Python pytz Converting a timestamp (string format) from one timezone to another
I have a timestamp with timezone information in string format and I would like to convert this to display the correct date/time using my local timezone. So for eg... I have[详细]
2023-04-02 19:29 分类:问答Module pytz was already imported
I keep getting the following error while running Python code: C:\\Python26\\lib\\site-packages\\pytz\\__init__.py:32:[详细]
2023-03-31 11:09 分类:问答How to make a datetime object aware (not naive) in Python?
What I need to do I have a timezone-unaware datetime object, to which I need to add a time zone in order to be able to compare it with other timezone-aware datetime objects. I do not want to convert m[详细]
2023-03-28 17:31 分类:问答Checking if a datetime object in mongodb is in UTC format or not from python
In mongodb, a field called joining_date appears as \"Sun Dec 19 2010 05:35:55 GMT+0000 (UTC)\" This as you see is a UTC date .[详细]
2023-03-23 12:56 分类:问答Python - From DST-adjusted local time to UTC
A specific bank has branches in all major cities in the world. They all open at 10:00 AM local time. If within a timezone that uses DST, then of course the local opening 开发者_如何学Pythontime also f[详细]
2023-03-22 16:19 分类:问答Checking if date is in UTC format
Im using the pytz module to translate a date in America/Los_Angeles timezone to utc by the code below :[详细]
2023-03-21 00:10 分类:问答Python datetime object show wrong timezone offset
I am try creating a datetime object开发者_开发知识库 in python using datetime and pytz, the offset shown is wrong.[详细]
2023-03-13 22:53 分类:问答