MCPcopy Index your code
hub / github.com/pydata/xarray / rollforward

Method rollforward

xarray/coding/cftime_offsets.py:508–513  ·  view source on GitHub ↗

Roll date forward to nearest end of quarter

(self, date)

Source from the content-addressed store, hash-verified

506 _day_option = "end"
507
508 def rollforward(self, date):
509 """Roll date forward to nearest end of quarter"""
510 if self.onOffset(date):
511 return date
512 else:
513 return date + QuarterEnd(month=self.month)
514
515 def rollback(self, date):
516 """Roll date backward to nearest end of quarter"""

Callers

nothing calls this directly

Calls 2

QuarterEndClass · 0.85
onOffsetMethod · 0.45

Tested by

no test coverage detected