copy

fun copy(years: Years = this.years, months: Months = this.months, days: Days = this.days): Period

Returns a new Period, replacing the years, months, and days components with new values, as desired

Return

a new Period with the supplied values

Parameters

years

new years value

months

new months value

days

new days value