core / io.islandtime / Date / plus

plus

(iosArm64, iosX64, jvm, macosX64) operator fun plus(period: Period): Date

Return a Date with period added to it.

Years are added first, then months, then days. If the day exceeds the maximum month length at any step, it will be coerced into the valid range. This behavior is consistent with the order of operations for period addition as defined in ISO-8601-2.

(iosArm64, iosX64, jvm, macosX64) operator fun plus(years: IntYears): Date
operator fun plus(years: LongYears): Date
operator fun plus(months: IntMonths): Date
operator fun plus(months: LongMonths): Date
operator fun plus(weeks: IntWeeks): Date
operator fun plus(weeks: LongWeeks): Date
operator fun plus(days: IntDays): Date
operator fun plus(days: LongDays): Date