title: How to get current isoformat datetime string including the default timezone?
body: <p>I need to produce a time string that matches the iso format <code>yyyy-mm-ddThh:mm:ss.ssssss-ZO:NE</code>.  The <code>now()</code> and <code>utcnow()</code> class methods almost do what I want.</p>
  
  <pre><code>&gt;&gt;&gt; import datetime
  &gt;&gt;&gt; #time adjusted for current timezone
  &gt;&gt;&gt; datetime.datetime.now().isoformat()
  '2010-08-03T03:00:00.000000'
  &gt;&gt;&gt; #unadjusted UTC time
  &gt;&gt;&gt; datetime.datetime.utcnow().isoformat()
  '2010-08-03T10:00:00.000000'
  &gt;&gt;&gt;
  &gt;&gt;&gt; #How can I do this?
  &gt;&gt;&gt; datetime.datetime.magic()
  '2010-08-03T10:00:00.000000-07:00'
  </code></pre>