toJSON
Returns a string representing this ZonedDateTime in RFC 9557 format (ISO 8601 with time zone).
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, .{});
}