TemporalZ

until

Returns the duration from this ZonedDateTime to another.

See: Temporal.ZonedDateTime.until

Parameters

#
self:ZonedDateTime
ZonedDateTime
other:ZonedDateTime
ZonedDateTime
settings:DifferenceSettings
DifferenceSettings

Source

Implementation

#
pub fn until(self: ZonedDateTime, other: ZonedDateTime, settings: DifferenceSettings) !Duration {
    const ptr = try abi.extractResult(abi.c.temporal_rs_ZonedDateTime_until(self._inner, other._inner, abi.to.diffsettings(settings)));
    if (ptr == null) return error.TemporalError;
    return .{ ._inner = ptr.? };
}