TemporalZ

toPlainTime

Returns a PlainTime representing the time part of this PlainDateTime.

Parameters

#
self:PlainDateTime
PlainDateTime

Source

Implementation

#
pub fn toPlainTime(self: PlainDateTime) !PlainTime {
    const ptr = abi.c.temporal_rs_PlainDateTime_to_plain_time(self._inner) orelse return error.TemporalError;
    return .{ ._inner = ptr };
}