[Tutor] ascii encoding
Tony Meyer
tameyer at ihug.co.nz
Wed Jan 26 03:44:48 CET 2005
> 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