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

[Backport 1.18] fix: Return normalized years-months-duration #977

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

saig0
Copy link
Member

@saig0 saig0 commented Jan 21, 2025

Description

Backport of #971 to 1.18.

relates to #953
original author: @saig0

saig0 added 3 commits January 21, 2025 11:47
Add test cases to verify that a duration returns a normalized value.

(cherry picked from commit bb287f0)
A years-months-duration should return a normalized string format. Period.getYear returns the year-component but works only if the period is normalized.

(cherry picked from commit d87a543)
Add another test case to verify that a years-months-duration returns a normalized value.

(cherry picked from commit 8acb203)
@saig0 saig0 merged commit 89f0a91 into 1.18 Jan 21, 2025
4 checks passed
@saig0 saig0 deleted the backport-971-to-1.18 branch January 21, 2025 12:02
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.

1 participant