Skip to content

Add a test for leap year - #114

Merged
bryantaustin13 merged 3 commits into
mainfrom
years-between-leap-years
Sep 8, 2026
Merged

bryantaustin13 merged 3 commits 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)".

@bryantaustin13 bryantaustin13 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Evaluated and approved.

Comment thread tests/cql/CqlDateTimeOperatorsTest.xml Outdated
Comment thread tests/cql/CqlDateTimeOperatorsTest.xml Outdated
@bryantaustin13
bryantaustin13 merged commit ab88b9d into main Sep 8, 2026
2 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.

Add a test for leap year

3 participants