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