Sums the number of days in the Gregorian calendar in years: 'startYear', 'startYear'+1, .., 'endYear'-1. 'startYear' and 'endYear' are expected to be from the range (-1000'000'000; +1000'000'000).
See https://github.com/mongodb/mongo/blob/master/src/mongo/db/query/datetime/date_time_support.cpp#L762
Sums the number of days in the Gregorian calendar in years: 'startYear', 'startYear'+1, .., 'endYear'-1. 'startYear' and 'endYear' are expected to be from the range (-1000'000'000; +1000'000'000).
See https://github.com/mongodb/mongo/blob/master/src/mongo/db/query/datetime/date_time_support.cpp#L762