Skip to content

Expose if a date is in a leap year - #4273

Merged
Manishearth merged 2 commits into
unicode-org:mainfrom
CanadaHonk:year-is-leap
Nov 13, 2023
Merged

Expose if a date is in a leap year#4273
Manishearth merged 2 commits into
unicode-org:mainfrom
CanadaHonk:year-is-leap

Conversation

@CanadaHonk

@CanadaHonk CanadaHonk commented Nov 13, 2023

Copy link
Copy Markdown
Contributor

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

@CLAassistant

CLAassistant commented Nov 13, 2023

Copy link
Copy Markdown

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
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