Skip to content

Commit c5fbbdc

Browse files
committed
Datetime
1 parent 7501dca commit c5fbbdc

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,9 @@ from dateutil.tz import UTC, tzlocal, gettz, resolve_imaginary
656656

657657
### Arithmetics
658658
```python
659-
<TD> = <D/DT> - <D/DT> # Returns the difference between wall times.
660-
<D/DT> = <D/DT> ± <TD> # Result can be an imaginary time.
661-
<TD> = <TD> ± <TD>
662-
<TD> = <TD> * <real>
659+
<D/DT> = <D/DT> ± <TD> # Result can fall into missing hour.
660+
<TD> = <D/DT> - <D/DT> # Returns the difference, ignoring time jumps.
661+
<TD> = <DT_UTC> - <DT_UTC> # Convert DTs to UTC to get the actual delta.
663662
```
664663

665664

index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,10 +703,9 @@
703703
<ul>
704704
<li><strong>When parsing, <code class="python hljs"><span class="hljs-string">'%z'</span></code> also accepts <code class="python hljs"><span class="hljs-string">'±HH:MM'</span></code>.</strong></li>
705705
</ul>
706-
<div><h3 id="arithmetics">Arithmetics</h3><pre><code class="python language-python apache hljs">&lt;TD&gt; = &lt;D/DT&gt; - &lt;D/DT&gt; <span class="hljs-comment"># Returns the difference between wall times.</span>
707-
&lt;D/DT&gt; = &lt;D/DT&gt; ± &lt;TD&gt; <span class="hljs-comment"># Result can be an imaginary time.</span>
708-
&lt;TD&gt; = &lt;TD&gt; ± &lt;TD&gt;
709-
&lt;TD&gt; = &lt;TD&gt; * &lt;real&gt;
706+
<div><h3 id="arithmetics">Arithmetics</h3><pre><code class="python language-python apache hljs">&lt;D/DT&gt; = &lt;D/DT&gt; ± &lt;TD&gt; <span class="hljs-comment"># Result can fall into missing hour.</span>
707+
&lt;TD&gt; = &lt;D/DT&gt; - &lt;D/DT&gt; <span class="hljs-comment"># Returns the difference, ignoring time jumps.</span>
708+
&lt;TD&gt; = &lt;DT_UTC&gt; - &lt;DT_UTC&gt; <span class="hljs-comment"># Convert DTs to UTC to get the actual delta.</span>
710709
</code></pre></div>
711710

712711
<div><h2 id="arguments"><a href="#arguments" name="arguments">#</a>Arguments</h2><div><h3 id="insidefunctioncall">Inside Function Call</h3><pre><code class="python language-python hljs">&lt;function&gt;(&lt;positional_args&gt;) <span class="hljs-comment"># f(0, 0)</span>

0 commit comments

Comments
 (0)