def rollforward(self, date):
        """Roll date forward to nearest end of quarter"""
        if self.onOffset(date):
            return date
        else:
            return date + QuarterEnd(month=self.month)
Roll date forward to nearest end of quarter
xarray/coding/cftime_offsets.py