Browse Source

Datetime

pull/31/head
Jure Šorn 6 years ago
parent
commit
5dd5a4bcab
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -480,7 +480,7 @@ from dateutil.tz import UTC, tzlocal, gettz
### Timezone
```python
<tz> = UTC # UTC timezone.
<tz> = UTC # UTC timezone. London without DST.
<tz> = tzlocal() # Local timezone.
<tz> = gettz('<Cont.>/<City>') # Timezone from 'Continent/City_Name' str.
```

2
index.html

@ -484,7 +484,7 @@ shuffle(&lt;list&gt;)
&lt;DTa&gt; = DT.now(&lt;tz&gt;) <span class="hljs-comment"># Aware datetime from current tz time.</span>
</code></pre>
<h3 id="timezone">Timezone</h3>
<pre><code class="python language-python hljs">&lt;tz&gt; = UTC <span class="hljs-comment"># UTC timezone.</span>
<pre><code class="python language-python hljs">&lt;tz&gt; = UTC <span class="hljs-comment"># UTC timezone. London without DST.</span>
&lt;tz&gt; = tzlocal() <span class="hljs-comment"># Local timezone.</span>
&lt;tz&gt; = gettz(<span class="hljs-string">'&lt;Cont.&gt;/&lt;City&gt;'</span>) <span class="hljs-comment"># Timezone from 'Continent/City_Name' str.</span>
</code></pre>

Loading…
Cancel
Save