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

Method rollforward

xarray/coding/cftime_offsets.py:483–488  ·  view source on GitHub ↗

Roll date forward to nearest start of quarter

(self, date)

Source from the content-addressed store, hash-verified

481 _day_option = "start"
482
483 def rollforward(self, date):
484 """Roll date forward to nearest start of quarter"""
485 if self.onOffset(date):
486 return date
487 else:
488 return date + QuarterBegin(month=self.month)
489
490 def rollback(self, date):
491 """Roll date backward to nearest start of quarter"""

Callers

nothing calls this directly

Calls 2

QuarterBeginClass · 0.85
onOffsetMethod · 0.45

Tested by

no test coverage detected