years property

int get years

The number of years in the duration.

Implementation

int get years => totalMonths.abs() ~/ 12;