TemporalZ

abs

Returns a new Duration with the absolute value (all components positive).

See: Temporal.Duration.abs

Parameters

#
self:Duration
Duration

Source

Implementation

#
pub fn abs(self: Duration) Duration {
    const ptr: *abi.c.Duration = abi.c.temporal_rs_Duration_abs(self._inner) orelse unreachable;
    return .{ ._inner = ptr };
}