TemporalZ

subtract

Returns a new Duration with the difference between this duration and another (balanced as needed).

See: Temporal.Duration.subtract

Parameters

#
self:Duration
Duration
other:Duration
Duration

Source

Implementation

#
pub fn subtract(self: Duration, other: Duration) !Duration {
    return wrapDuration(abi.c.temporal_rs_Duration_subtract(self._inner, other._inner));
}