diff --git a/.nojekyll b/.nojekyll index f9161440d..1fdaf41f2 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -a69daa00 \ No newline at end of file +937e825e \ No newline at end of file diff --git a/EDA.html b/EDA.html index 231338315..d9c039a02 100644 --- a/EDA.html +++ b/EDA.html @@ -272,7 +272,7 @@
Se você quiser saber mais em como o NULL
funciona, você irá gostar do artigo “Three valued logic” de Markus Winand.
now()
:
Otherwise, the following sections describe the four ways you’re likely to create a date/time:
as_date()
:
as_datetime(today())
-#> [1] "2024-08-03 UTC"
+#> [1] "2024-08-06 UTC"
as_date(now())
-#> [1] "2024-08-03"
Sometimes you’ll get date/times as numeric offsets from the “Unix Epoch”, 1970-01-01. If the offset is in seconds, use as_datetime()
; if it’s in days, use as_date()
.
# How old is Hadley?
h_age <- today() - ymd("1979-10-14")
h_age
-#> Time difference of 16365 days
A difftime
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 duration.
as.duration(h_age)
-#> [1] "1413936000s (~44.8 years)"
Durations come with a bunch of convenient constructors: