pitrou commented on issue #47400:
URL: https://github.com/apache/arrow/issues/47400#issuecomment-3233661564

   I think we can follow Pandas' lead where days and larger units are 
considered logical while hours and smaller units are considered physical:
   ```python
   >>> begin
   Timestamp('2025-03-08 09:30:00-0500', tz='America/New_York')
   
   # Logical calendar addition
   >>> begin + pd.DateOffset(days=2)
   Timestamp('2025-03-10 09:30:00-0400', tz='America/New_York')
   >>> begin + pd.DateOffset(months=1)
   Timestamp('2025-04-08 09:30:00-0400', tz='America/New_York')
   
   # Physical duration addition
   >>> begin + pd.DateOffset(hours=48)
   Timestamp('2025-03-10 10:30:00-0400', tz='America/New_York')
   >>> begin + pd.DateOffset(seconds=48*3600)
   Timestamp('2025-03-10 10:30:00-0400', tz='America/New_York')
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to