The CQL specification is clear that the duration and difference operators deal with calendar durations, and specifically gives the example of duration in years with a date starting on a leap day:
define Test3:
years between @2012-02-29 and @2014-02-28
In the spec, this example returns 2, based on the ISO definition of calendar years. However, we do not have this specific test case exercised, we should add this test case.
Source: Example 4.b
The CQL specification is clear that the duration and difference operators deal with calendar durations, and specifically gives the example of duration in years with a date starting on a leap day:
In the spec, this example returns 2, based on the ISO definition of calendar years. However, we do not have this specific test case exercised, we should add this test case.
Source: Example 4.b