as_year_quarter_day()
converts a vector to the yearquarterday
calendar. Time points, Dates, POSIXct, and other calendars can all be
converted to yearquarterday.
as_year_quarter_day(x, ..., start = NULL)
x 
A vector to convert to yearquarterday. 

...  These dots are for future extensions and must be empty. 
start 
The month to start the fiscal year in. 1 = January and 12 = December. If

A yearquarterday vector.
#> <year_quarter_day<January><day>[1]> #> [1] "2019Q101"#> <year_quarter_day<March><day>[1]> #> [1] "2019Q432"# From POSIXct, which assumes that the naive time is what should be converted as_year_quarter_day(as.POSIXct("20190101 02:30:30", "America/New_York"))#> <year_quarter_day<January><second>[1]> #> [1] "2019Q101 02:30:30"#> <year_quarter_day<January><day>[1]> #> [1] "2019Q143"#> <year_quarter_day<February><day>[1]> #> [1] "2019Q101"# Default keeps the same start as_year_quarter_day(x)#> <year_quarter_day<February><day>[1]> #> [1] "2019Q101"# But you can change it as_year_quarter_day(x, start = 1)#> <year_quarter_day<January><day>[1]> #> [1] "2018Q132"