method Duration.fromYears Duration.fromYears(years: number): Duration Creates a Duration from years. Parameters years: number Return Type Duration