Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
2022-rstudio-conf-its-about-time
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Davis Vaughan
July 05, 2022
570
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Β 2022-rstudio-conf-its-about-time
Davis Vaughan
July 05, 2022
More Decks by Davis Vaughan
See All by Davis Vaughan
New features in dplyr 1.1.0, plus an intro to ivs
davisvaughan
0
1.2k
slide-almanac.pdf
davisvaughan
0
600
useR-2019-rray.pdf
davisvaughan
0
1.3k
Rethinking Arrays in R
davisvaughan
3
1.8k
Arrays in R
davisvaughan
0
240
Modeling in the tidyverse
davisvaughan
0
320
Time series & financial analysis in the tidyverse
davisvaughan
4
1k
Featured
See All Featured
Are puppies a ranking factor?
jonoalderson
2
4k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
500
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
520
30 Presentation Tips
portentint
PRO
1
410
Code Reviewing Like a Champion
maltzj
528
40k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
380
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Embracing the Ebb and Flow
colly
88
5.2k
Transcript
Itβs about time Davis Vaughan July 2022
None
clock is not replacing lubridate
π clock.r-lib.org Safety
π clock.r-lib.org Calendars Safety
π clock.r-lib.org 2022-01-30 Calendars Safety
None
π clock.r-lib.org Jan 27 28 29 30 31 Feb Mar
1 2 Feb 27 28 1 2
π clock.r-lib.org Jan 27 28 29 30 31 Feb Mar
1 2 Feb Add 1 month? ? 27 28 1 2
π clock.r-lib.org "2022-01-30" + months(1) = NA Jan 27 28
29 30 31 Feb Mar 1 2 Feb Add 1 month? ? 27 28 1 2
π clock.r-lib.org add_months("2022-01-30", 1) #> ! Invalid date found at
location 1. #> βΉ Resolve invalid date issues by #> specifying the `invalid` argument. Jan 27 28 29 30 31 Feb Mar 1 2 Feb Add 1 month? ? 27 28 1 2
π clock.r-lib.org add_months("2022-01-30", 1, invalid = "previous") = "2022-02-28" Jan
27 28 29 30 31 Feb Mar 1 2 Feb Add 1 month? 27 28 1 2
π clock.r-lib.org add_months("2022-01-30", 1, invalid = "next") = "2022-03-01" Jan
27 28 29 30 31 Feb Mar 1 2 Feb Add 1 month? 27 28 1 2
π clock.r-lib.org add_months("2022-01-30", 1, invalid = "NA") = NA Jan
27 28 29 30 31 Feb Mar 1 2 Feb Add 1 month? 27 28 1 2
π clock.r-lib.org "2022-01-30" year_month_day
π clock.r-lib.org "2022-030" year_day "2022-01-30" year_month_day
π clock.r-lib.org "2022-030" year_day "2022-01-Sun[5]" year_month_weekday "2022-Q1-30" year_quarter_day "2022-W04-7" iso_year_week_day
"2022-01-30" year_month_day
π clock.r-lib.org "2022-030" year_day "2022-01-Sun[5]" year_month_weekday "2022-Q1-30" year_quarter_day "2022-W04-7" iso_year_week_day
"2022-01-30" year_month_day
π clock.r-lib.org "2022-030" year_day "2022-01-Sun[5]" year_month_weekday "2022-Q1-30" year_quarter_day "2022-W04-7" iso_year_week_day
"2022-01-30" year_month_day Date POSIXct
π clock.r-lib.org "2022-030" year_day "2022-01-Sun[5]" year_month_weekday "2022-Q1-30" year_quarter_day "2022-W04-7" iso_year_week_day
"2022-01-30" year_month_day Date POSIXct "2022-01" year_month_day<month> "2022-01-30" year_month_day
π clock.r-lib.org Compatibility slider ivs Rolling average, looking back 3
quarters Intervals, i.e. [2022-01, 2022-07)
lubridate is NOT going anywhere But try clock for: -
Enhanced safety - Powerful types clock.r-lib.org