From The Document Foundation Wiki
Date and Time
Calculates the difference in years between two dates.
StartDate is the first date
EndDate is the second date
Type calculates the type of difference. Possible values are 0 (interval) and 1 (in calendar years).