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

Expose if a date is in a leap year #4273

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

CanadaHonk
Copy link
Contributor

@CanadaHonk CanadaHonk commented Nov 13, 2023

Adds year_is_leap to Calendar by using the underlying ArithmeticCalendar trait's is_leap_year function. Also exposed in Date. Closes #3963.

@CLAassistant
Copy link

CLAassistant commented Nov 13, 2023

CLA assistant check
All committers have signed the CLA.

Adds `year_is_leap` to `Calendar` by using the underlying `ArithmeticCalendar` `is_leap_year` function. Also exposed in `Date`/etc. Closes unicode-org#3963.
@CanadaHonk CanadaHonk marked this pull request as ready for review November 13, 2023 16:57
Manishearth
Manishearth previously approved these changes Nov 13, 2023
@Manishearth Manishearth merged commit 861a4fa into unicode-org:main Nov 13, 2023
29 checks passed
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.

Exposed API for Temporal operation CalendarDateInLeapYear
3 participants