TemporalZ

subtract

Returns a new PlainYearMonth moved backward by the given duration.

See: Temporal.PlainYearMonth.subtract

Parameters

#
self:PlainYearMonth
PlainYearMonth
duration:Duration
Duration

Source

Implementation

#
pub fn subtract(self: PlainYearMonth, duration: Duration) !PlainYearMonth {
    const overflow = abi.c.ArithmeticOverflow_Constrain;
    return wrapPlainYearMonth(abi.c.temporal_rs_PlainYearMonth_subtract(self._inner, duration._inner, overflow));
}