copy

fun copy(years: IntYears = this.years, months: IntMonths = this.months, days: IntDays = 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