%T is %H:%M:%S (#3349)

This commit is contained in:
Barry Revzin
2023-03-18 07:16:22 -07:00
committed by GitHub
parent d8e1c4265a
commit 93bfa05382
2 changed files with 5 additions and 4 deletions
+3 -4
View File
@@ -1624,10 +1624,9 @@ class tm_writer {
write2(tm_min());
}
void on_iso_time() {
char buf[8];
write_digit2_separated(buf, to_unsigned(tm_hour()), to_unsigned(tm_min()),
to_unsigned(tm_sec()), ':');
out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_);
on_24_hour_time();
*out_++ = ':';
on_second(numeric_system::standard, pad_type::unspecified);
}
void on_am_pm() {