Skip to content

Add next_anniversary functions to Date and DateTime #477

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

StephenBrown2
Copy link

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.

@StephenBrown2
Copy link
Author

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

@StephenBrown2 StephenBrown2 force-pushed the add_next_anniversary branch from d37c667 to f453dc7 Compare June 1, 2020 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants