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

Class Day

xarray/coding/cftime_offsets.py:612–624  ·  view source on GitHub ↗

Day offset following definition in pandas/_libs/tslibs/offsets.pyx

Source from the content-addressed store, hash-verified

610
611
612class Day(BaseCFTimeOffset):
613 """Day offset following definition in pandas/_libs/tslibs/offsets.pyx"""
614
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
625
626
627class Hour(Tick):

Callers 4

test_add_daily_offsetsFunction · 0.90
__apply__Method · 0.85

Calls

no outgoing calls

Tested by 2

test_add_daily_offsetsFunction · 0.72