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