core / io.islandtime.measures / Period / copy

copy

(iosArm64, iosX64, jvm, macosX64) fun copy(years: IntYears = this.years, months: IntMonths = this.months, days: IntDays = this.days): Period

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

Parameters

years - new years value

months - new months value

days - new days value

Return
a new Period with the supplied values