Re: [Tutor] Timezone issues with datetime module.

2010-03-10 Thread DK
kushal gupta gmail.com> writes: > > Hi,  I am facing an issue with datetime module with some timezones You may want to check out the pytz library at http://pytz.sourceforge.net/ for easier timezone manipulation. ___ Tutor maillist - Tutor@pytho

[Tutor] Timezone issues with datetime module.

2010-03-10 Thread kushal gupta
Hi, I am facing an issue with datetime module with some timezones (especially day light savings). Given the date and the timezone, I want to convert it to the UTC date and time. Here is the snippet: import datetime import mx.DateTime from dateutil import zoneinfo def parse_date(date, tzname):