Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/pydata/xarray
/ __apply__
Method
__apply__
xarray/coding/cftime_offsets.py:617–621 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
615
_freq =
"D"
616
617
def
__apply__(self, other):
618
if
isinstance(other, Day):
619
return
Day(self.n + other.n)
620
else
:
621
return
other + timedelta(days=self.n)
622
623
def
onOffset(self, date) -> bool:
624
return
True
Callers
nothing calls this directly
Calls
1
Day
Class · 0.85
Tested by
no test coverage detected