toPlainYearMonth
Returns a PlainYearMonth representing the year and month in this date.
Parameters
- self:PlainDate
- PlainDate
Source
Implementation
pub fn toPlainYearMonth(self: PlainDate) !PlainYearMonth {
const ptr = (try abi.extractResult(abi.c.temporal_rs_PlainDate_to_plain_year_month(self._inner))) orelse return abi.TemporalError.Generic;
return .{ ._inner = ptr };
}