Browse Source

Datetime

pull/46/head
Jure Šorn 4 years ago
parent
commit
f2a5bbe24d
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -657,7 +657,7 @@ from dateutil.tz import UTC, tzlocal, gettz, resolve_imaginary
### Arithmetics
```python
<D/DT> = <D/DT> ± <TD> # Result can fall into missing hour.
<TD> = <D/DT> - <D/DT> # Returns the difference, ignoring time jumps.
<TD> = <D/DT> - <D/DT> # Ignores time jumps if they share non tzlocal tz.
<TD> = <DT_UTC> - <DT_UTC> # Convert DTs to UTC to get the actual delta.
```

2
index.html

@ -703,7 +703,7 @@ shuffle(&lt;list&gt;)
<li><strong>For abbreviated weekday and month use <code class="python hljs"><span class="hljs-string">'%a'</span></code> and <code class="python hljs"><span class="hljs-string">'%b'</span></code>.</strong></li>
</ul>
<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>
&lt;TD&gt; = &lt;D/DT&gt; - &lt;D/DT&gt; <span class="hljs-comment"># Returns the difference, ignoring time jumps.</span>
&lt;TD&gt; = &lt;D/DT&gt; - &lt;D/DT&gt; <span class="hljs-comment"># Ignores time jumps if they share non tzlocal tz.</span>
&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>
</code></pre></div>

Loading…
Cancel
Save