TemporalZ

round

Returns a new PlainTime rounded to the given unit and options.

See: Temporal.PlainTime.round

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)));
}