> 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

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to