years property

int years

The number of whole years spanned by the months component of this RelativeDuration.

Implementation

int get years {
  return _months ~/ 12;
}