You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be inconsistencies regarding time (hours, minutes, etc) handling of Offset.apply. Maybe all these should preserve hours/minutes like DayOffset? Or any other rules?
Followings are results offset(n=1) applied to datetime(2011, 1, 1, 9, 0).
Thanks. I found BusinessDay, CustomBusinessDay, CustomBusinessMonthEnd and CustomBusinessMonthBegin already have normalize option to normalize the date. How about adding normalize option to all the offset with default False?
The option should affect to apply, rollforward, rollback and onOffset.
yes I think all offsets should handle normalize (default of False)
refactor out to a function
and tests for all offsets (which is the best way to ensure that they have consistent functionality)
eg out automated tests for all offsets in Base (which we have for other things, eg making sure apply returns a Timestamp for example)
There seems to be inconsistencies regarding time (hours, minutes, etc) handling of
Offset.apply
. Maybe all these should preserve hours/minutes likeDayOffset
? Or any other rules?Followings are results offset(n=1) applied to
datetime(2011, 1, 1, 9, 0)
.The text was updated successfully, but these errors were encountered: