TemporalZ

until

Returns a Duration representing the difference from this instant until another instant.

See: Temporal.Instant.until

Parameters

#
self:Instant
Instant
other:Instant
Instant
settings:DifferenceSettings
DifferenceSettings

Source

Implementation

#
pub fn until(self: Instant, other: Instant, settings: DifferenceSettings) !Duration {
    const ptr = (try abi.extractResult(abi.c.temporal_rs_Instant_until(self._inner, other._inner, abi.to.diffsettings(settings)))) orelse return abi.TemporalError.Generic;
    return .{ ._inner = ptr };
}