Browse Source

Datetime

pull/116/head
Jure Šorn 2 years ago
parent
commit
3f5b66c67c
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -602,7 +602,7 @@ from dateutil.tz import UTC, tzlocal, gettz, datetime_exists, resolve_imaginary
```
* **Use `'<D/DT>.weekday()'` to get the day of the week (Mon == 0).**
* **`'fold=1'` means the second pass in case of time jumping back for one hour.**
* **TD converts and normalizes args to ±days, seconds (< 86,400) and microseconds (< 1M).**
* **TD converts and normalizes args to ±days, seconds (< 86400) and microseconds (< 1M).**
### Now
```python

2
index.html

@ -530,7 +530,7 @@ to_exclusive = &lt;range&gt;.stop
<ul>
<li><strong>Use <code class="python hljs"><span class="hljs-string">'&lt;D/DT&gt;.weekday()'</span></code> to get the day of the week (Mon == 0).</strong></li>
<li><strong><code class="python hljs"><span class="hljs-string">'fold=1'</span></code> means the second pass in case of time jumping back for one hour.</strong></li>
<li><strong>TD converts and normalizes args to ±days, seconds (&lt; 86,400) and microseconds (&lt; 1M).</strong></li>
<li><strong>TD converts and normalizes args to ±days, seconds (&lt; 86400) and microseconds (&lt; 1M).</strong></li>
</ul>
<div><h3 id="now">Now</h3><pre><code class="python language-python hljs">&lt;D/DTn&gt; = D/DT.today() <span class="hljs-comment"># Current local date or naive datetime.</span>
&lt;DTn&gt; = DT.utcnow() <span class="hljs-comment"># Naive datetime from current UTC time.</span>

Loading…
Cancel
Save