title: Python: Figure out local timezone
body: <p>I want to compare UTC timestamps from a log file with local timestamps. When creating the local <code>datetime</code> object, I use something like:</p>
  
  <pre><code>&gt;&gt;&gt; local_time=datetime.datetime(2010, 4, 27, 12, 0, 0, 0, 
                                   tzinfo=pytz.timezone('Israel'))
  </code></pre>
  
  <p>I want to find an automatic tool that would replace the<code>tzinfo=pytz.timezone('Israel')</code> with the current local time zone.</p>
  
  <p>Any ideas?</p>