Day offset following definition in pandas/_libs/tslibs/offsets.pyx
| 610 | |
| 611 | |
| 612 | class 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 | |
| 627 | class Hour(Tick): |
no outgoing calls