TemporalZ

since

Returns the duration from another ZonedDateTime to this one.

See: Temporal.ZonedDateTime.since

Parameters

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

Source

Implementation

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