Skip to content

Add a test for leap year#114

Open
antvaset wants to merge 1 commit into
mainfrom
years-between-leap-years
Open

Add a test for leap year#114
antvaset wants to merge 1 commit into
mainfrom
years-between-leap-years

Conversation

@antvaset

@antvaset antvaset commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Closes #105.

When calculating duration in years between dates, if both dates fall on the last day of February, the expected result is (see https://cql.hl7.org/15-h-timeintervalcalculations.html#scenario-4):

Duration (years) = year (date 2) - year (date 1)

…on the last day of February, the expected result is "year (date 2) - year (date 1)".
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.

Add a test for leap year

2 participants