|
296 | 296 | <li class="sidebar-item">
|
297 | 297 | <div class="sidebar-item-container">
|
298 | 298 | <a href="./joins.html" class="sidebar-item-text sidebar-link">
|
299 |
| - <span class="menu-text"><span class="chapter-number">19</span> <span class="chapter-title">Joins</span></span></a> |
| 299 | + <span class="menu-text"><span class="chapter-number">19</span> <span class="chapter-title">✅ Uniões (<em>joins</em>)</span></span></a> |
300 | 300 | </div>
|
301 | 301 | </li>
|
302 | 302 | </ul>
|
@@ -492,9 +492,9 @@ <h1 class="title"><span id="sec-dates-and-times" class="quarto-section-identifie
|
492 | 492 | <p>To get the current date or date-time you can use <code><a href="https://lubridate.tidyverse.org/reference/now.html">today()</a></code> or <code><a href="https://lubridate.tidyverse.org/reference/now.html">now()</a></code>:</p>
|
493 | 493 | <div class="cell">
|
494 | 494 | <div class="sourceCode" id="cb2"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">today</a></span><span class="op">(</span><span class="op">)</span></span>
|
495 |
| -<span><span class="co">#> [1] "2024-07-30"</span></span> |
| 495 | +<span><span class="co">#> [1] "2024-08-03"</span></span> |
496 | 496 | <span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">now</a></span><span class="op">(</span><span class="op">)</span></span>
|
497 |
| -<span><span class="co">#> [1] "2024-07-30 09:30:14 -03"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div> |
| 497 | +<span><span class="co">#> [1] "2024-08-03 12:07:18 -03"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div> |
498 | 498 | </div>
|
499 | 499 | <p>Otherwise, the following sections describe the four ways you’re likely to create a date/time:</p>
|
500 | 500 | <ul>
|
@@ -782,9 +782,9 @@ <h1 class="title"><span id="sec-dates-and-times" class="quarto-section-identifie
|
782 | 782 | <p>You may want to switch between a date-time and a date. That’s the job of <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_datetime()</a></code> and <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_date()</a></code>:</p>
|
783 | 783 | <div class="cell">
|
784 | 784 | <div class="sourceCode" id="cb13"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_datetime</a></span><span class="op">(</span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">today</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span></span>
|
785 |
| -<span><span class="co">#> [1] "2024-07-30 UTC"</span></span> |
| 785 | +<span><span class="co">#> [1] "2024-08-03 UTC"</span></span> |
786 | 786 | <span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_date</a></span><span class="op">(</span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">now</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span></span>
|
787 |
| -<span><span class="co">#> [1] "2024-07-30"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div> |
| 787 | +<span><span class="co">#> [1] "2024-08-03"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div> |
788 | 788 | </div>
|
789 | 789 | <p>Sometimes you’ll get date/times as numeric offsets from the “Unix Epoch”, 1970-01-01. If the offset is in seconds, use <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_datetime()</a></code>; if it’s in days, use <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_date()</a></code>.</p>
|
790 | 790 | <div class="cell">
|
@@ -1010,12 +1010,12 @@ <h1 class="title"><span id="sec-dates-and-times" class="quarto-section-identifie
|
1010 | 1010 | <div class="sourceCode" id="cb28"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># How old is Hadley?</span></span>
|
1011 | 1011 | <span><span class="va">h_age</span> <span class="op"><-</span> <span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">today</a></span><span class="op">(</span><span class="op">)</span> <span class="op">-</span> <span class="fu"><a href="https://lubridate.tidyverse.org/reference/ymd.html">ymd</a></span><span class="op">(</span><span class="st">"1979-10-14"</span><span class="op">)</span></span>
|
1012 | 1012 | <span><span class="va">h_age</span></span>
|
1013 |
| -<span><span class="co">#> Time difference of 16361 days</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div> |
| 1013 | +<span><span class="co">#> Time difference of 16365 days</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div> |
1014 | 1014 | </div>
|
1015 | 1015 | <p>A <code>difftime</code> class object records a time span of seconds, minutes, hours, days, or weeks. This ambiguity can make difftimes a little painful to work with, so lubridate provides an alternative which always uses seconds: the <strong>duration</strong>.</p>
|
1016 | 1016 | <div class="cell">
|
1017 | 1017 | <div class="sourceCode" id="cb29"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/as.duration.html">as.duration</a></span><span class="op">(</span><span class="va">h_age</span><span class="op">)</span></span>
|
1018 |
| -<span><span class="co">#> [1] "1413590400s (~44.79 years)"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div> |
| 1018 | +<span><span class="co">#> [1] "1413936000s (~44.8 years)"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div> |
1019 | 1019 | </div>
|
1020 | 1020 | <p>Durations come with a bunch of convenient constructors:</p>
|
1021 | 1021 | <div class="cell">
|
|
0 commit comments