years property

Rational years

Gets the number of years in this Time, including any fractional portion.

Implementation

Rational get years => getUnits(TimeUnit.year);