[socal-piggies] replacement for time.tzset() on win32?

Michael Elkins me at sigpipe.org
Thu Jan 20 10:53:13 PST 2011


Haven't had much luck searching for a solution, so I thought I'd ask the local 
experts..

I'm porting some Python scripts to the win32 platform, but I'm stuck on the 
fact that time.tzset() is missing on win32.  The code does the usual trick for 
running in UTC:

	import os, time
	os.environ['TZ'] = 'UTC'
	time.tzset()

The the rest of the code can happily ignore timezone issues.  Has anyone dealt 
with this issue before?

Thanks!

Michael
	



More information about the socal-piggies mailing list