differenceInCalendarYears
import { differenceInCalendarYears } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// How many calendar years are between 31 December 2013 and 11 February 2015?
const result = differenceInCalendarYears(
new Date(2015, 1, 11),
new Date(2013, 11, 31)
)
//=> 2
function differenceInCalendarYears<DateType extends Date>(dateLeft: DateType | number | string, dateRight: DateType | number | string): number;