[Tutor] ascii encoding
Luis N
tegmine at gmail.com
Wed Jan 26 03:56:32 CET 2005
In other words I have to do some arithmetic:
>>> import time
>>> time.timezone
0
The server is located in Dallas, Texas.
On Wed, 26 Jan 2005 15:44:48 +1300, Tony Meyer <tameyer at ihug.co.nz> wrote:
> > time.timezone gives you, I think, the offset between
> > your current timezone and GMT. However, being myself in the GMT zone,
> > I don't know exactly if the returned offset is positive or negative
> > (it returns 0 here, which makes sense :D ).
>
> Whether or not it's positive or negative depends on which side of GMT/UTC
> you are, of course :) Note that the result in is seconds, too:
>
> >>> import time
> >>> time.timezone
> -43200
> >>> time.timezone/60/60
> -12
>
> (I'm in NZ, 12 hours ahead of GMT/UTC).
>
> =Tony.Meyer
>
>
More information about the Tutor
mailing list