We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27e7196 commit 68fc283Copy full SHA for 68fc283
pandas/tseries/offsets.py
@@ -738,11 +738,11 @@ def rollforward(self, dt):
738
return dt
739
740
def _get_closing_time(self, dt):
741
+ # dt is guaranteed to be a starting time
742
for i, st in enumerate(self.start):
743
if st.hour == dt.hour and st.minute == dt.minute:
744
return dt + timedelta(
745
seconds=self._get_business_hours_by_sec(st, self.end[i]))
- raise ValueError("dt should be a starting time")
746
747
@apply_wraps
748
def apply(self, other):
0 commit comments