core-ktx / androidx.time / java.time.Period / component3

component3

inline operator fun Period.component3(): Int

Return the days component of this Period.

This method allows to use destructuring declarations when working with periods, for example:

val (years, months, days) = myPeriod

See Also

Period.getDays