[Tutor] I need advice.

Nathan Pinno falcon3166 at hotmail.com
Tue Aug 2 08:02:06 CEST 2005


I forgot to tell that I use Python 2.2.3. When I first got Python, I got 
2.4.1, but it refused to run the second time. So I went and got 2.2.3. Your 
answer would make sense if I had 2.4.1, but I don't.
----- Original Message ----- 
From: "Danny Yoo" <dyoo at hkn.eecs.berkeley.edu>
To: "Nathan Pinno" <falcon3166 at hotmail.com>
Cc: "Tutor mailing list" <tutor at python.org>
Sent: Monday, August 01, 2005 11:41 PM
Subject: Re: [Tutor] I need advice.


>
>
> On Mon, 1 Aug 2005, Nathan Pinno wrote:
>
>> I want to write a program that will convert time in any other time zone
>> to my time zone. Would it be better to use the Python time molecule or
>> just a whole bunch of if statements?
>
> Hi Nathan,
>
> I'd recommend looking at the 'datetime' Python module.  Getting this stuff
> right is hard, so unless you really want to learn how time conversions
> work, take advantage of the library.  There's something there that does do
> time zones:
>
>    http://www.python.org/doc/lib/datetime-tzinfo.html
>    http://www.python.org/doc/lib/tzinfo-examples.txt
>
> Good luck!
>
> 


More information about the Tutor mailing list