On Wed, Feb 17, 2010 at 03:24:26PM -0600, David Perlman wrote: >But this doesn't help, because then you still don't know whether it's >dst or not. You then would have to jump through whatever >convolutions to do that calculation. > >All I want to know is the *current* offset between local time and >utc. I know the system has this information already; it doesn't >require any kind of fancy calculations about global politics or >anything.
Well, does time.timezone help? It returns time offset from UTC in seconds. -- yours, William _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor