round
Returns a new PlainTime rounded to the given unit and options.
Parameters
- self:PlainTime
- PlainTime
- options:RoundOptions
- RoundOptions
Source
Implementation
pub fn round(self: PlainTime, options: RoundOptions) !PlainTime {
return wrapPlainTime(abi.c.temporal_rs_PlainTime_round(self._inner, abi.to.roundingOpts(options)));
}