TemporalZ

toJSON

Returns a string representing this ZonedDateTime in RFC 9557 format (ISO 8601 with time zone).

See: Temporal.ZonedDateTime.toJSON

Parameters

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

Source

Implementation

#
pub fn toJSON(self: ZonedDateTime, allocator: std.mem.Allocator) ![]u8 {
    return self.toString(allocator, .{});
}