TemporalZ

subtract

Returns a new PlainTime moved backward by the given duration, wrapping around the clock if necessary.

See: Temporal.PlainTime.subtract

Parameters

#
self:PlainTime
PlainTime
duration:Duration
Duration

Source

Implementation

#
pub fn subtract(self: PlainTime, duration: Duration) !PlainTime {
    return wrapPlainTime(abi.c.temporal_rs_PlainTime_subtract(self._inner, duration._inner));
}