| ... | @@ -226,7 +226,6 @@ pub const DateTime = struct { | ... | @@ -226,7 +226,6 @@ pub const DateTime = struct { |
| 226 | .ddd => try writer.writeAll(@tagName(self.weekday)), | 226 | .ddd => try writer.writeAll(@tagName(self.weekday)), |
| 227 | .DD => try writer.print("{:0>2}", .{self.days + 1}), | 227 | .DD => try writer.print("{:0>2}", .{self.days + 1}), |
| 228 | .YYYY => try writer.print("{:0>4}", .{self.years}), | 228 | .YYYY => try writer.print("{:0>4}", .{self.years}), |
| 229 | .SSS => try writer.print("{:0>3}", .{self.ms}), | | |
| 230 | .MM => try writer.print("{:0>2}", .{self.months + 1}), | 229 | .MM => try writer.print("{:0>2}", .{self.months + 1}), |
| 231 | .z => try writer.writeAll(@tagName(self.timezone)), | 230 | .z => try writer.writeAll(@tagName(self.timezone)), |
| 232 | .M => try writer.print("{}", .{self.months + 1}), | 231 | .M => try writer.print("{}", .{self.months + 1}), |
| ... | @@ -265,6 +264,9 @@ pub const DateTime = struct { | ... | @@ -265,6 +264,9 @@ pub const DateTime = struct { |
| 265 | .mm => try writer.print("{:0>2}", .{self.minutes}), | 264 | .mm => try writer.print("{:0>2}", .{self.minutes}), |
| 266 | .s => try writer.print("{}", .{self.seconds}), | 265 | .s => try writer.print("{}", .{self.seconds}), |
| 267 | .ss => try writer.print("{:0>2}", .{self.seconds}), | 266 | .ss => try writer.print("{:0>2}", .{self.seconds}), |
| | 267 | .S => try writer.print("{}", .{self.ms / 100}), |
| | 268 | .SS => try writer.print("{:0>2}", .{self.ms / 10}), |
| | 269 | .SSS => try writer.print("{:0>3}", .{self.ms}), |
| 268 | | 270 | |
| 269 | else => @compileError("'" ++ @tagName(tag) ++ "' not currently supported"), | 271 | else => @compileError("'" ++ @tagName(tag) ++ "' not currently supported"), |
| 270 | } | 272 | } |