How do I get Python to notice a change in the system timezone while running?
<p>If I change my computer's timezone while a Python program is running, that program continues to use the old timezone for calculations and conversions unless I restart the program.</p>

<p>This causes trouble in situations such as parsing the output of commands which use local time, such as <code>net stats svr</code> in Windows. Converting such a parsed local time to a Unix timestamp with <code>time.mktime(local_naive_datetime.timetuple())</code> returns an incorrect timestamp unless the program is restarted because it assumes the local time is in the old timezone.</p>

<p>A simple example demonstrating this problem: call <code>datetime.datetime.now()</code>, change the system timezone, and call the function again. The second call returns the local time in the old timezone.</p>

<p>Is there a function or other method I can use to tell Python to recheck the system timezone without restarting a long-running script?</p>

<p>I am running Python 2.7.3 on Windows 7.</p>
