TemporalZ

round

Returns a new PlainDateTime rounded according to the given options.

Parameters

#
self:PlainDateTime
PlainDateTime
options:RoundOptions
RoundOptions

Source

Implementation

#
pub fn round(self: PlainDateTime, options: RoundOptions) !PlainDateTime {
    return wrapPlainDateTime(abi.c.temporal_rs_PlainDateTime_round(self._inner, abi.to.roundingOpts(options)));
}