You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<D/T/DT>= D/T/DT.fromisoformat('<iso>') # Object from ISO string. Raises ValueError.
624
624
<DT>=DT.strptime(<str>, '<format>') # Datetime from str, according to format.
625
625
<D/DTn>= D/DT.fromordinal(<int>) # D/DTn from days since Christ, at midnight.
626
-
<DTn>=DT.fromtimestamp(<real>) # Local time DTn from seconds since Epoch.
627
-
<DTa>=DT.fromtimestamp(<real>, <tz.>) # Aware datetime from seconds since Epoch.
626
+
<DTn>=DT.fromtimestamp(<real>) # Local time DTn from seconds since the Epoch.
627
+
<DTa>=DT.fromtimestamp(<real>, <tz.>) # Aware datetime from seconds since the Epoch.
628
628
```
629
629
***ISO strings come in following forms: `'YYYY-MM-DD'`, `'HH:MM:SS.ffffff[±<offset>]'`, or both separated by an arbitrary character. Offset is formatted as: `'HH:MM'`.**
630
630
***Epoch on Unix systems is: `'1970-01-01 00:00 UTC'`, `'1970-01-01 01:00 CET'`, ...**
Copy file name to clipboardExpand all lines: index.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -701,8 +701,8 @@
701
701
<div><h3id="encode">Encode</h3><pre><codeclass="python language-python apache hljs"><D/T/DT> = D/T/DT.fromisoformat(<spanclass="hljs-string">'<iso>'</span>) <spanclass="hljs-comment"># Object from ISO string. Raises ValueError.</span>
702
702
<DT> = DT.strptime(<str>, <spanclass="hljs-string">'<format>'</span>) <spanclass="hljs-comment"># Datetime from str, according to format.</span>
703
703
<D/DTn> = D/DT.fromordinal(<int>) <spanclass="hljs-comment"># D/DTn from days since Christ, at midnight.</span>
704
-
<DTn> = DT.fromtimestamp(<real>) <spanclass="hljs-comment"># Local time DTn from seconds since Epoch.</span>
705
-
<DTa> = DT.fromtimestamp(<real>, <tz.>) <spanclass="hljs-comment"># Aware datetime from seconds since Epoch.</span>
704
+
<DTn> = DT.fromtimestamp(<real>) <spanclass="hljs-comment"># Local time DTn from seconds since the Epoch.</span>
705
+
<DTa> = DT.fromtimestamp(<real>, <tz.>) <spanclass="hljs-comment"># Aware datetime from seconds since the Epoch.</span>
706
706
</code></pre></div>
707
707
708
708
<ul>
@@ -712,8 +712,8 @@
712
712
<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>
0 commit comments