How to obtain GMT offset?

Peter Hansen peter at engcorp.com
Tue Aug 16 09:35:35 EDT 2005


Erik Max Francis wrote:
> time.timezone gives you the timezone offset in minutes.

Dang, that means I'm twelve days in the past!

 >>> import time
 >>> time.timezone
18000
 >>> 18000/60
300
(So that would be hours? ;-) )

 >>> 18000/60/24
12

Wait up guys!

-Peter



More information about the Python-list mailing list