TemporalZ

toPlainDateTime

Returns a PlainDateTime representing the date and time portions of this ZonedDateTime.

See: Temporal.ZonedDateTime.toPlainDateTime

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 };
}