From b50c9553124608a66a34666828a1cb80cc5420c3 Mon Sep 17 00:00:00 2001 From: Anton Vasetenkov Date: Thu, 4 Jun 2026 07:15:51 +1200 Subject: [PATCH] When calculating duration in years between dates, if both dates fall on the last day of February, the expected result is "year (date 2) - year (date 1)". --- tests/cql/CqlDateTimeOperatorsTest.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/cql/CqlDateTimeOperatorsTest.xml b/tests/cql/CqlDateTimeOperatorsTest.xml index 193a390..1cdf904 100644 --- a/tests/cql/CqlDateTimeOperatorsTest.xml +++ b/tests/cql/CqlDateTimeOperatorsTest.xml @@ -821,6 +821,16 @@ years between DateTime(2005, 5) and DateTime(2010, 4) 4 + + + years between @2012-02-29 and @2014-02-28 + 2 + + + + years between @2012-02-29T12:34:56 and @2014-02-28T12:34:56 + 2 + months between @2014-01-31 and @2014-02-01