x <- year_quarter_day(2020, 1:4)
get_quarter(x)
# Set and then get the last day of the quarter
x <- set_day(x, "last")
get_day(x)
# Start the fiscal year in November and choose the 50th day in
# each quarter of 2020
november <- 11
y <- year_quarter_day(2020, 1:4, 50, start = 11)
y
get_day(y)
# What does that map to in year-month-day?
as_year_month_day(y)
Run the code above in your browser using DataLab