Skip to content

//core/io.islandtime/Date/minus

minus

common

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.

common

operator fun minus(centuries: Centuries): Date

Returns this date with centuries subtracted from it.

common

operator fun minus(decades: Decades): Date

Returns this date with decades subtracted from it.

common

operator fun minus(years: Years): Date

Returns this date with years subtracted from it.

common

operator fun minus(months: Months): Date

Returns this date with months subtracted from it.

common

operator fun minus(weeks: Weeks): Date

Returns this date with weeks subtracted from it.

common

operator fun minus(days: Days): Date

Returns this date with days subtracted from it.