monthCode
Returns the calendar-specific string representing the month of this year-month.
Parameters
- self:PlainYearMonth
- PlainYearMonth
- allocator:std.mem.Allocator
- std.mem.Allocator
Source
Implementation
pub fn monthCode(self: PlainYearMonth, allocator: std.mem.Allocator) ![]const u8 {
var write = abi.DiplomatWrite.init(allocator);
defer write.deinit();
abi.c.temporal_rs_PlainYearMonth_month_code(self._inner, &write.inner);
return try write.toOwnedSlice();
}