Period.getYears

Gets the amount of years of this period. !(p) This returns the years unit. !(p) The months unit is not automatically normalized with the years unit. This means that a period of "15 months" is different to a period of "1 year and 3 months".

@return the amount of years of this period, may be negative

class Period
int
getYears
()

Meta