authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-07-14 17:45:37 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-07-14 17:45:37 -07:00
logdcca09510f26fa26ccba55828199a83583714560
tree3cb9e1fcdbfb0b8a5bf08025ffd0bfecfbe56f50
parent926bbdc1f0f7109b0ef1425eb24b727a5e0b21c9
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

DateTime: add stringifyJson


1 files changed, 4 insertions(+), 0 deletions(-)

time.zig+4
......@@ -446,6 +446,10 @@ pub const DateTime = struct {
446446 }
447447 return result;
448448 }
449
450 pub fn stringifyJson(self: DateTime, writer: anytype, options: std.json.Stringify.Options, json: type) !void {
451 return json.stringify(writer, &self.toISOString(), options);
452 }
449453};
450454
451455pub const format = struct {