core / io.islandtime / Date / minus

minus

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

Returns this date with period subtracted from 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 minus(years: IntYears): Date
operator fun minus(years: LongYears): Date
operator fun minus(months: IntMonths): Date
operator fun minus(months: LongMonths): Date
operator fun minus(weeks: IntWeeks): Date
operator fun minus(weeks: LongWeeks): Date
operator fun minus(days: IntDays): Date
operator fun minus(days: LongDays): Date