duration x years long, or get the years in a
If input is numeric, returns a
duration array in units of fixed-length
years of 365.2425 days each.
If input is a
duration, converts the
duration to a number of fixed-length
years as double.
years creates fixed-length years, which may not be what you want.
To create a duration of calendar years (which account for actual leap days),