since
Returns a Duration representing the difference from another instant until this instant.
Parameters
- self:Instant
- Instant
- other:Instant
- Instant
- settings:DifferenceSettings
- DifferenceSettings
Source
Implementation
pub fn since(self: Instant, other: Instant, settings: DifferenceSettings) !Duration {
const ptr = (try abi.extractResult(abi.c.temporal_rs_Instant_since(self._inner, other._inner, abi.to.diffsettings(settings)))) orelse return abi.TemporalError.Generic;
return .{ ._inner = ptr };
}