| ... | ... | @@ -226,7 +226,6 @@ pub const DateTime = struct { |
| 226 | 226 | .ddd => try writer.writeAll(@tagName(self.weekday)), |
| 227 | 227 | .DD => try writer.print("{:0>2}", .{self.days + 1}), |
| 228 | 228 | .YYYY => try writer.print("{:0>4}", .{self.years}), |
| 229 | | .HH => try writer.print("{:0>2}", .{self.hours}), |
| 230 | 229 | .mm => try writer.print("{:0>2}", .{self.minutes}), |
| 231 | 230 | .ss => try writer.print("{:0>2}", .{self.seconds}), |
| 232 | 231 | .SSS => try writer.print("{:0>3}", .{self.ms}), |
| ... | ... | @@ -258,6 +257,12 @@ pub const DateTime = struct { |
| 258 | 257 | .NN => try writer.writeAll("Anno Domini"), |
| 259 | 258 | .A => try printLongName(writer, self.hours / 12, &[_]string{ "AM", "PM" }), |
| 260 | 259 | .a => try printLongName(writer, self.hours / 12, &[_]string{ "am", "pm" }), |
| 260 | .H => try writer.print("{}", .{self.hours}), |
| 261 | .HH => try writer.print("{:0>2}", .{self.hours}), |
| 262 | .h => try writer.print("{}", .{wrap(self.hours, 12)}), |
| 263 | .hh => try writer.print("{:0>2}", .{wrap(self.hours, 12)}), |
| 264 | .k => try writer.print("{}", .{wrap(self.hours, 24)}), |
| 265 | .kk => try writer.print("{:0>2}", .{wrap(self.hours, 24)}), |
| 261 | 266 | |
| 262 | 267 | else => @compileError("'" ++ @tagName(tag) ++ "' not currently supported"), |
| 263 | 268 | } |