How do I print a Python datetime in the local timezone?
<p>Let's say I have a variable t that's set to this:</p>

<pre><code>datetime.datetime(2009, 7, 10, 18, 44, 59, 193982, tzinfo=&lt;UTC&gt;)
</code></pre>

<p>If I say <code>str(t)</code>, i get:</p>

<pre><code>'2009-07-10 18:44:59.193982+00:00'
</code></pre>

<p>How can I get a similar string, except printed in the local timezone rather than UTC?</p>
