TemporalZ

withPlainTime

Returns a new ZonedDateTime with the time part replaced by the new time.

See: Temporal.ZonedDateTime.withPlainTime

Parameters

#
self:ZonedDateTime
ZonedDateTime
time:?PlainTime
?PlainTime

Source

Implementation

#
pub fn withPlainTime(self: ZonedDateTime, time: ?PlainTime) !ZonedDateTime {
    const time_ptr = if (time) |tt| tt._inner else null;
    return wrapZonedDateTime(abi.c.temporal_rs_ZonedDateTime_with_plain_time(self._inner, time_ptr));
}