TemporalZ

toPlainMonthDay

Returns a PlainMonthDay representing the month and day in this date.

Parameters

#
self:PlainDate
PlainDate

Source

Implementation

#
pub fn toPlainMonthDay(self: PlainDate) !PlainMonthDay {
    const ptr = (try abi.extractResult(abi.c.temporal_rs_PlainDate_to_plain_month_day(self._inner))) orelse return abi.TemporalError.Generic;
    return .{ ._inner = ptr };
}