TemporalZ

monthCode

Returns the calendar-specific string representing the month of this date.

See: Temporal.PlainMonthDay.monthCode

Parameters

#
self:PlainMonthDay
PlainMonthDay
allocator:std.mem.Allocator
std.mem.Allocator

Source

Implementation

#
pub fn monthCode(self: PlainMonthDay, allocator: std.mem.Allocator) ![]const u8 {
    var write = abi.DiplomatWrite.init(allocator);
    defer write.deinit();

    abi.c.temporal_rs_PlainMonthDay_month_code(self._inner, &write.inner);
    return try write.toOwnedSlice();
}