TemporalZ

since

Returns the duration from another PlainTime to this one.

See: Temporal.PlainTime.since

Parameters

#
self:PlainTime
PlainTime
other:PlainTime
PlainTime
options:DifferenceSettings
DifferenceSettings

Source

Implementation

#
pub fn since(self: PlainTime, other: PlainTime, options: DifferenceSettings) !Duration {
    const settings = abi.to.diffsettings(options);
    const result = abi.c.temporal_rs_PlainTime_since(self._inner, other._inner, settings);
    const ptr = (try abi.extractResult(result)) orelse return abi.TemporalError.Generic;
    return .{ ._inner = ptr };
}