Skip to content

[IMP] Lib/datetime.py: add function to compute what months between two given dates#23713

Closed
ghost wants to merge 1 commit into
masterfrom
unknown repository
Closed

[IMP] Lib/datetime.py: add function to compute what months between two given dates#23713
ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Dec 9, 2020

For example:

Object:
datetime.date(2020, 12, 9)

Argument:
datetime.date(2022, 2, 9)

Output:
[(2020, 12), (2021, 1), (2021, 2), (2021, 3), (2021, 4), (2021, 5), (2021, 6), (2021, 7), (2021, 8), (2021, 9), (2021, 10), (2021, 11), (2021, 12), (2022, 1), (2022, 2)]

…o given dates

For example:

Object:
datetime.date(2020, 12, 9)

Argument:
datetime.date(2022, 2, 9)

Output:
[(2020, 12), (2021, 1), (2021, 2), (2021, 3), (2021, 4), (2021, 5), (2021, 6), (2021, 7), (2021, 8), (2021, 9), (2021, 10), (2021, 11), (2021, 12), (2022, 1), (2022, 2)]
@the-knights-who-say-ni
Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@QaidjoharBarbhaya

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

@abalkin
Copy link
Copy Markdown
Member

abalkin commented Dec 14, 2020

Feature additions to standard library should first be discussed on the mailing list.

@abalkin abalkin closed this Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants