How to obtain GMT offset?
Erik Max Francis
max at alcyone.com
Tue Aug 16 05:57:16 CEST 2005
new pip wrote:
> I'm using Windows os. If the current system date time is '28 Jun 2001
> 14:17:15 +0700', how can I obtain the value '+0700' using python?
time.timezone gives you the timezone offset in minutes.
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Many would be cowards if they had courage enough.
-- Thomas Fuller
More information about the Python-list