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

Method onOffset

xarray/coding/cftime_offsets.py:567–570  ·  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

565 _default_month = 1
566
567 def onOffset(self, date) -> bool:
568 """Check if the given date is in the set of possible dates created
569 using a length-one version of this offset class."""
570 return date.day == 1 and date.month == self.month
571
572 def rollforward(self, date):
573 """Roll date forward to nearest start of year"""

Callers 2

rollforwardMethod · 0.95
rollbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected