How to obtain GMT offset?

Mark Thalman work-lists at ijuggle5.com
Tue Aug 16 14:13:16 EDT 2005


According to <http://www.python.org/doc/2.4.1/lib/module-time.html>  
it is in seconds.

-- 
Mark


On Aug 16, 2005, at 9:35 AM, Peter Hansen wrote:

> 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
> -- 
> http://mail.python.org/mailman/listinfo/python-list
>
>




More information about the Python-list mailing list