toPlainTime
Returns a PlainTime representing the time portion of this ZonedDateTime.
Parameters
- self:ZonedDateTime
- ZonedDateTime
Source
Implementation
pub fn toPlainTime(self: ZonedDateTime) !PlainTime {
const ptr = abi.c.temporal_rs_ZonedDateTime_to_plain_time(self._inner) orelse return error.TemporalError;
return .{ ._inner = ptr };
}