Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Add next_anniversary functions to Date and DateTime#477

Open
StephenBrown2 wants to merge 3 commits intopython-pendulum:master from
StephenBrown2:add_next_anniversary
Open

Add next_anniversary functions to Date and DateTime #477
StephenBrown2 wants to merge 3 commits intopython-pendulum:master from
StephenBrown2:add_next_anniversary

Conversation

@StephenBrown2
Copy link

@StephenBrown2 StephenBrown2 commented May 29, 2020

Pull Request Check List

This adds next_anniversary to both Date and DateTime instances, returning the next anniversary for a given instance, properly accounting for leap years by taking advantage of the .add function rather than simply comparing the month and day of an instance.

  • Added tests for changed code.
  • Updated documentation for changed code.

Copy link
Author

MacOS having a bad day, apparently... :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /