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

Method onOffset

xarray/coding/cftime_offsets.py:592–595  ·  view source on GitHub ↗

Check if the given date is in the set of possible dates created using a length-one version of this offset class.

(self, date)

Source from the content-addressed store, hash-verified

590 _default_month = 12
591
592 def onOffset(self, date) -> bool:
593 """Check if the given date is in the set of possible dates created
594 using a length-one version of this offset class."""
595 return date.day == date.daysinmonth and date.month == self.month
596
597 def rollforward(self, date):
598 """Roll date forward to nearest end of year"""

Callers 2

rollforwardMethod · 0.95
rollbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected