Skip to content

Commit 004826a

Browse files
committed
deploy: c249eba
1 parent 591bc10 commit 004826a

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

user/print.html

+9-6
Original file line numberDiff line numberDiff line change
@@ -2026,18 +2026,18 @@ <h2 id="options-18"><a class="header" href="#options-18">Options</a></h2>
20262026
</dl>
20272027
<h2 id="examples-16"><a class="header" href="#examples-16">Examples</a></h2>
20282028
<p>Display the current date using the default locale's format:</p>
2029-
<pre><code class="language-shell">date +&quot;%c&quot;
2029+
<pre><code class="language-shell">date +%c
20302030
</code></pre>
2031-
<p>Display the current date in UTC and ISO 8601 format:</p>
2032-
<pre><code class="language-shell">date -u +&quot;%Y-%m-%dT%H:%M:%SZ&quot;
2031+
<p>Display the current date in UTC, using the ISO 8601 format:</p>
2032+
<pre><code class="language-shell">date -u +%Y-%m-%dT%H:%M:%SZ
20332033
</code></pre>
20342034
<p>Display the current date as a Unix timestamp (seconds since the Unix epoch):</p>
20352035
<pre><code class="language-shell">date +%s
20362036
</code></pre>
2037-
<p>Display a specific date (represented as a Unix timestamp) using the default format:</p>
2038-
<pre><code class="language-shell">date -d @1473305798
2037+
<p>Convert a date specified as a Unix timestamp to the default format:</p>
2038+
<pre><code class="language-shell">date -d @{{1473305798}}
20392039
</code></pre>
2040-
<p>Convert a specific date to the Unix timestamp format:</p>
2040+
<p>Convert a given date to the Unix timestamp format:</p>
20412041
<pre><code class="language-shell">date -d &quot;{{2018-09-01 00:00}}&quot; +%s --utc
20422042
</code></pre>
20432043
<p>Display the current date using the RFC-3339 format (<code>YYYY-MM-DD hh:mm:ss TZ</code>):</p>
@@ -2046,6 +2046,9 @@ <h2 id="examples-16"><a class="header" href="#examples-16">Examples</a></h2>
20462046
<p>Set the current date using the format <code>MMDDhhmmYYYY.ss</code> (<code>YYYY</code> and <code>.ss</code> are optional):</p>
20472047
<pre><code class="language-shell">date {{093023592021.59}}
20482048
</code></pre>
2049+
<p>Display the current ISO week number:</p>
2050+
<pre><code class="language-shell">date +%V
2051+
</code></pre>
20492052
<blockquote>
20502053
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
20512054
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>

user/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

user/searchindex.json

+1-1
Large diffs are not rendered by default.

user/utils/date.html

+9-6
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,18 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
232232
</dl>
233233
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
234234
<p>Display the current date using the default locale's format:</p>
235-
<pre><code class="language-shell">date +&quot;%c&quot;
235+
<pre><code class="language-shell">date +%c
236236
</code></pre>
237-
<p>Display the current date in UTC and ISO 8601 format:</p>
238-
<pre><code class="language-shell">date -u +&quot;%Y-%m-%dT%H:%M:%SZ&quot;
237+
<p>Display the current date in UTC, using the ISO 8601 format:</p>
238+
<pre><code class="language-shell">date -u +%Y-%m-%dT%H:%M:%SZ
239239
</code></pre>
240240
<p>Display the current date as a Unix timestamp (seconds since the Unix epoch):</p>
241241
<pre><code class="language-shell">date +%s
242242
</code></pre>
243-
<p>Display a specific date (represented as a Unix timestamp) using the default format:</p>
244-
<pre><code class="language-shell">date -d @1473305798
243+
<p>Convert a date specified as a Unix timestamp to the default format:</p>
244+
<pre><code class="language-shell">date -d @{{1473305798}}
245245
</code></pre>
246-
<p>Convert a specific date to the Unix timestamp format:</p>
246+
<p>Convert a given date to the Unix timestamp format:</p>
247247
<pre><code class="language-shell">date -d &quot;{{2018-09-01 00:00}}&quot; +%s --utc
248248
</code></pre>
249249
<p>Display the current date using the RFC-3339 format (<code>YYYY-MM-DD hh:mm:ss TZ</code>):</p>
@@ -252,6 +252,9 @@ <h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
252252
<p>Set the current date using the format <code>MMDDhhmmYYYY.ss</code> (<code>YYYY</code> and <code>.ss</code> are optional):</p>
253253
<pre><code class="language-shell">date {{093023592021.59}}
254254
</code></pre>
255+
<p>Display the current ISO week number:</p>
256+
<pre><code class="language-shell">date +%V
257+
</code></pre>
255258
<blockquote>
256259
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
257260
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>

0 commit comments

Comments
 (0)