core / io.islandtime / Date / plus

plus

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) operator fun plus(period: Period): Date

Returns this 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.

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) 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