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

Method rollback

xarray/coding/cftime_offsets.py:490–495  ·  view source on GitHub ↗

Roll date backward to nearest start of quarter

(self, date)

Source from the content-addressed store, hash-verified

488 return date + QuarterBegin(month=self.month)
489
490 def rollback(self, date):
491 """Roll date backward to nearest start of quarter"""
492 if self.onOffset(date):
493 return date
494 else:
495 return date - QuarterBegin(month=self.month)
496
497
498class QuarterEnd(QuarterOffset):

Callers

nothing calls this directly

Calls 2

QuarterBeginClass · 0.85
onOffsetMethod · 0.45

Tested by

no test coverage detected