<li><strong>ISO strings come in following forms: <codeclass="python hljs"><spanclass="hljs-string">'YYYY-MM-DD'</span></code>, <codeclass="python hljs"><spanclass="hljs-string">'HH:MM:SS.ffffff[±<offset>]'</span></code>, or both separated by a space or a <codeclass="python hljs"><spanclass="hljs-string">'T'</span></code>. Offset is formatted as: <codeclass="python hljs"><spanclass="hljs-string">'HH:MM'</span></code>.</strong></li>
<li><strong>On Unix systems Epoch is <codeclass="python hljs"><spanclass="hljs-string">'1970-01-01 00:00 UTC'</span></code>, <codeclass="python hljs"><spanclass="hljs-string">'1970-01-01 01:00 CET'</span></code>, …</strong></li>
</ul>
<div><h3id="decode">Decode</h3><pre><codeclass="python language-python hljs"><str> = <D/T/DT>.isoformat() <spanclass="hljs-comment"># ISO string representation.</span>
<div><h3id="decode">Decode</h3><pre><codeclass="python language-python hljs"><str> = <D/T/DT>.isoformat(sep=<spanclass="hljs-string">'T'</span>)<spanclass="hljs-comment"># Also timespec='auto/hours/minutes/seconds'.</span>