Skip to content

Wrong Result Documented in Date Arithmetic datetime #93267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pweibert opened this issue May 26, 2022 · 2 comments
Closed

Wrong Result Documented in Date Arithmetic datetime #93267

pweibert opened this issue May 26, 2022 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@pweibert
Copy link

Documentation

The datetime module documentation states the following regarding the date arithmetic:
date2 = date1 + timedelta : date2 is timedelta.days days removed from date1. (1)

it should actually be stating:
date2 = date1 + timedelta : date1 is timedelta.days days removed from date2. (1)

@pweibert pweibert added the docs Documentation in the Doc dir label May 26, 2022
@ericvsmith
Copy link
Member

I think "removed" is being used as "away from", in which case it makes sense. I think replacing "removed" with a better phrase is a better idea.

@ericvsmith
Copy link
Member

Merged in to main, 3.11, and 3.10. Thanks @BenjaminHelyer! Congrats on your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants