| author | |
| committer | |
| log | dcca09510f26fa26ccba55828199a83583714560 |
| tree | 3cb9e1fcdbfb0b8a5bf08025ffd0bfecfbe56f50 |
| parent | 926bbdc1f0f7109b0ef1425eb24b727a5e0b21c9 |
| signature |
1 files changed, 4 insertions(+), 0 deletions(-)
time.zig+4| ... | @@ -446,6 +446,10 @@ pub const DateTime = struct { | ... | @@ -446,6 +446,10 @@ pub const DateTime = struct { |
| 446 | } | 446 | } |
| 447 | return result; | 447 | return result; |
| 448 | } | 448 | } |
| 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 | } | ||
| 449 | }; | 453 | }; |
| 450 | 454 | ||
| 451 | pub const format = struct { | 455 | pub const format = struct { |