round
Returns a new Instant rounded to the given unit.
Parameters
- self:Instant
- Instant
- options:RoundingOptions
- RoundingOptions
Source
Implementation
pub fn round(self: Instant, options: RoundingOptions) !Instant {
return wrapInstant(abi.c.temporal_rs_Instant_round(self._inner, abi.to.roundingOpts(options)));
}