minus

expect operator fun minus(duration: Duration): Instant

Returns an instant that is the result of subtracting the specified duration from this instant. NOTE: Duration may be negative in which case the returned Instant will be later than this Instant.


expect operator fun minus(other: Instant): Duration

Returns the duration between other and this instant. NOTE: The duration will be negative if other occurred after this instant.

actual operator fun minus(duration: Duration): Instant

Returns an instant that is the result of subtracting the specified duration from this instant.

If the duration is positive, the returned instant is earlier than this instant. If the duration is negative, the returned instant is later than this instant.


actual operator fun minus(other: Instant): Duration
actual operator fun minus(duration: Duration): Instant

Returns an instant that is the result of subtracting the specified duration from this instant. NOTE: Duration may be negative in which case the returned Instant will be later than this Instant.


actual operator fun minus(other: Instant): Duration