Skip to content

Adjustments to toPlainYearMonth and toPlainMonthDay methods on PlainDate #237

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

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

nekevss
Copy link
Member

@nekevss nekevss commented Mar 5, 2025

Closes #204

This PR updates a couple methods on PlainDate and adjusts the implementation of PlainDate::to_plain_year_month.

Both to_plain_year_month and to_plain_month_day are passing 100% of tests in Boa.

This PR also removes PlainDate::days_until from being pub. There's not clear reason why it was made public, so it's been made private.

@nekevss nekevss requested a review from jedel1043 March 5, 2025 03:25
@nekevss nekevss added the C-api Changes related to the public API label Mar 5, 2025
Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

LGTM

@jedel1043 jedel1043 merged commit 6a223e1 into main Mar 5, 2025
8 checks passed
@jedel1043 jedel1043 deleted the adjust-to-ym-md branch March 5, 2025 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-api Changes related to the public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement PlainDate.prototype.toPlainYearMonth and PlainDate.prototype.toPlainMonthDay
2 participants