Get right timezone information when using datetime.datetime.now()?
<p>I'm trying to get the date in datetime.datetime.now() format but for MT time in Python 2.7.</p>

<p>If you suggest using a library please explain how to install it. Thanks.</p>

<pre><code>from pytz import timezone
from datetime import datetime
datetime.now(timezone('US/Mountain'))
</code></pre>

<p>That's what you probably need. As for installing the library, just <code>pip install pytz</code></p>

python python-2.7