until
Returns the duration from this PlainYearMonth to another.
Parameters
- self:PlainYearMonth
- PlainYearMonth
- other:PlainYearMonth
- PlainYearMonth
- options:DifferenceSettings
- DifferenceSettings
Source
Implementation
pub fn until(self: PlainYearMonth, other: PlainYearMonth, options: DifferenceSettings) !Duration {
const settings = abi.to.diffsettings(options);
const result = abi.c.temporal_rs_PlainYearMonth_until(self._inner, other._inner, settings);
const ptr = (try abi.extractResult(result)) orelse return abi.TemporalError.Generic;
return .{ ._inner = ptr };
}