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

Howard B. Golden howard_b_golden at yahoo.com
Thu Jan 20 12:28:11 PST 2011


Michael,

Sorry. The information in my first response doesn't apply to Windows XP.

Here's a better article: http://support.microsoft.com/kb/916452

Howard



----- Original Message ----
> From: Howard B. Golden <howard_b_golden at yahoo.com>
> To: SoCal Python Interest Group <socal-piggies at lists.idyll.org>
> Sent: Thu, January 20, 2011 12:17:42 PM
> Subject: Re: [socal-piggies] replacement for time.tzset() on win32?
> 
> Hi Michael,
> 
> You can get / set the timezone in the Windows registry. See 
> http://msdn.microsoft.com/en-us/library/aa909148.aspx
> 
> Is this what  you need?
> 
> Howard
> 
> 
> 
> ----- Original Message ----
> > From:  Michael Elkins <me at sigpipe.org>
> > To: socal-piggies at lists.idyll.org
> >  Sent: Thu, January 20, 2011 10:53:13 AM
> > Subject: [socal-piggies]  replacement for time.tzset() on win32?
> > 
> > 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
> >    
> > 
> > _______________________________________________
> > socal-piggies  mailing  list
> > socal-piggies at lists.idyll.org
> > http://lists.idyll.org/listinfo/socal-piggies
> > 
> 
> _______________________________________________
> socal-piggies mailing  list
> socal-piggies at lists.idyll.org
> http://lists.idyll.org/listinfo/socal-piggies
> 



More information about the socal-piggies mailing list