<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 1, 2014 at 12:10 PM, Chris Barker <span dir="ltr"><<a href="mailto:chris.barker@noaa.gov" target="_blank">chris.barker@noaa.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_quote">"For a naive object, the %z and %Z format codes are replaced by empty strings."<div>
<br></div><div>¬†though I'm not entirely sure what that means -- probably only for writing.</div></div></blockquote></div><div class="gmail_extra"><br></div>That's right:</div><div class="gmail_extra"><br></div><div class="gmail_extra">
<div class="gmail_extra">>>> from datetime import *</div><div class="gmail_extra">>>> datetime.now().strftime('%z')</div><div class="gmail_extra">''</div><div class="gmail_extra">>>> datetime.now(timezone.utc).strftime('%z')</div>
<div class="gmail_extra">'+0000'</div><br></div></div>