toPlainDateTime
Returns a PlainDateTime representing the date and time portions of this ZonedDateTime.
Parameters
- self:ZonedDateTime
- ZonedDateTime
Source
Implementation
pub fn toPlainDateTime(self: ZonedDateTime) !PlainDateTime {
const ptr = abi.c.temporal_rs_ZonedDateTime_to_plain_datetime(self._inner) orelse return error.TemporalError;
return .{ ._inner = ptr };
}