TemporalZ

until

Returns the Duration until another PlainDate, according to the given settings.

Parameters

#
self:PlainDate
PlainDate
other:PlainDate
PlainDate
settings:DifferenceSettings
DifferenceSettings

Source

Implementation

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