Optimize %F in tm formatting
This commit is contained in:
@@ -48,6 +48,7 @@ TEST(chrono_test, format_tm) {
|
||||
tm.tm_sec = 33;
|
||||
EXPECT_EQ(fmt::format("The date is {:%Y-%m-%d %H:%M:%S}.", tm),
|
||||
"The date is 2016-04-25 11:22:33.");
|
||||
EXPECT_EQ(fmt::format("{:%F}", tm), "2016-04-25");
|
||||
}
|
||||
|
||||
TEST(chrono_test, grow_buffer) {
|
||||
|
||||
Reference in New Issue
Block a user