quarter: Get the fiscal quarter and semester of a date-time.
Description
Quarters divide the year into fourths. Semesters divide the year into halfs.
Usage
quarter(x, with_year = FALSE)
semester(x, with_year = FALSE)
Arguments
x
a date-time object of class POSIXct, POSIXlt, Date, chron, yearmon,
yearqtr, zoo, zooreg, timeDate, xts, its, ti, jul, timeSeries, fts or
anything else that can be converted with as.POSIXlt
with_year
logical indicating whether or not to include the quarter's
year.