TemporalZ

toPlainDate

Returns a PlainDate representing the date portion of this ZonedDateTime.

See: Temporal.ZonedDateTime.toPlainDate

Parameters

#
self:ZonedDateTime
ZonedDateTime

Source

Implementation

#
pub fn toPlainDate(self: ZonedDateTime) !PlainDate {
    const ptr = abi.c.temporal_rs_ZonedDateTime_to_plain_date(self._inner) orelse return error.TemporalError;
    return .{ ._inner = ptr };
}