week.ending: A vector of class Date. Each entry contains the date of the last day in a week.
Returns
Returns a numeric vector of the same length as week.ending. Each entry gives the fraction of days in the week that occur in the coarse time interval (month or quarter) containing the start of the week (i.e the date 6 days before).