minus

operator fun minus(period: Period): OffsetDateTime

Returns this date-time with period subtracted from it.

Years are subtracted first, then months, then days. If the day exceeds the maximum month length at any step, it will be coerced into the valid range.

operator fun minus(duration: Duration): OffsetDateTime
operator fun minus(duration: Duration): OffsetDateTime

Returns this date-time with duration subtracted from it.

operator fun minus(centuries: Centuries): OffsetDateTime

Returns this date-time with centuries subtracted from it.

operator fun minus(decades: Decades): OffsetDateTime

Returns this date-time with decades subtracted from it.

operator fun minus(years: Years): OffsetDateTime

Returns this date-time with years subtracted from it.

operator fun minus(months: Months): OffsetDateTime

Returns this date-time with months subtracted from it.

operator fun minus(weeks: Weeks): OffsetDateTime

Returns this date-time with weeks subtracted from it.

operator fun minus(days: Days): OffsetDateTime

Returns this date-time with days subtracted from it.

open operator override fun minus(hours: Hours): OffsetDateTime

Returns this date-time with hours subtracted from it.

open operator override fun minus(minutes: Minutes): OffsetDateTime

Returns this date-time with minutes subtracted from it.

open operator override fun minus(seconds: Seconds): OffsetDateTime

Returns this date-time with seconds subtracted from it.

open operator override fun minus(milliseconds: Milliseconds): OffsetDateTime

Returns this date-time with milliseconds subtracted from it.

open operator override fun minus(microseconds: Microseconds): OffsetDateTime

Returns this date-time with microseconds subtracted from it.

open operator override fun minus(nanoseconds: Nanoseconds): OffsetDateTime

Returns this date-time with nanoseconds subtracted from it.