TemporalZ

add

Returns a new PlainYearMonth moved forward by the given duration.

See: Temporal.PlainYearMonth.add

Parameters

#
self:PlainYearMonth
PlainYearMonth
duration:Duration
Duration

Source

Implementation

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