| ... | ... | @@ -232,15 +232,8 @@ pub const DateTime = struct { |
| 232 | 232 | .z => try writer.writeAll(@tagName(self.timezone)), |
| 233 | 233 | .M => try writer.print("{}", .{self.months + 1}), |
| 234 | 234 | .Mo => try printOrdinal(writer, self.months + 1), |
| 235 | | |
| 236 | | .MMM => { |
| 237 | | const names = [_]string{ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; |
| 238 | | try writer.writeAll(names[self.months]); |
| 239 | | }, |
| 240 | | .MMMM => try printLongName(writer, self.months, &[_]string{ |
| 241 | | "January", "February", "March", "April", "May", "June", |
| 242 | | "July", "August", "September", "October", "November", "December", |
| 243 | | }), |
| 235 | .MMM => try printLongName(writer, self.months, &[_]string{ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }), |
| 236 | .MMMM => try printLongName(writer, self.months, &[_]string{ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }), |
| 244 | 237 | |
| 245 | 238 | else => @compileError("'" ++ @tagName(tag) ++ "' not currently supported"), |
| 246 | 239 | } |