core-ktx / androidx.time / kotlin.Int / years

years

inline fun Int.years(): Period

Return a Period representing this value in years.

See Also

Period.ofYears