Skip to content
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

Add PyDateTime::new_with_fold() method #1398

Merged
merged 5 commits into from Jan 24, 2021

Conversation

kangalio
Copy link
Contributor

@kangalio kangalio commented Jan 21, 2021

PyTime already has a new_with_fold() method; PyDateTime needs one for consistency and, more importantly, to be able to handle leap seconds correctly.

@davidhewitt
Copy link
Member

👍 thanks very much for this! While adding this function, would you be willing to add an accompanying test please?

(I know the other methods in this file aren't tested; that's an accident of history. 😄 )

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for this!

@kangalio
Copy link
Contributor Author

Thank you for all the kind feedback you keep giving! :)

@davidhewitt davidhewitt merged commit fbe7de1 into PyO3:master Jan 24, 2021
@davidhewitt davidhewitt mentioned this pull request Jan 24, 2021
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.

None yet

2 participants