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