mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 15:11:43 +01:00
Optimize %T in tm formatting
This commit is contained in:
committed by
Victor Zverovich
parent
aaeca12d89
commit
92614ecbf9
@@ -49,6 +49,7 @@ TEST(chrono_test, format_tm) {
|
||||
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");
|
||||
EXPECT_EQ(fmt::format("{:%T}", tm), "11:22:33");
|
||||
}
|
||||
|
||||
TEST(chrono_test, grow_buffer) {
|
||||
|
||||
Reference in New Issue
Block a user