toPlainDate
Returns a PlainDate representing the date part of this PlainDateTime.
Parameters
- self:PlainDateTime
- PlainDateTime
Source
Implementation
pub fn toPlainDate(self: PlainDateTime) !PlainDate {
const ptr = abi.c.temporal_rs_PlainDateTime_to_plain_date(self._inner) orelse return error.TemporalError;
return .{ ._inner = ptr };
}