We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f2e61f commit 5bd83bdCopy full SHA for 5bd83bd
1 file changed
test/chrono-test.cc
@@ -263,7 +263,11 @@ auto strftime_full_utc(TimePoint tp) -> std::string {
263
return system_strftime("%Y-%m-%d %H:%M:%S", &tm);
264
}
265
266
-TEST(chrono_test, system_clock_time_point) {
+TEST(chrono_test, sys_time) {
267
+ auto time =
268
+ fmt::sys_time<std::chrono::seconds>(std::chrono::seconds(290088000));
269
+ EXPECT_EQ(fmt::format("{:%z}", time), "+0000");
270
+
271
auto t1 = std::chrono::time_point_cast<std::chrono::seconds>(
272
std::chrono::system_clock::now());
273
EXPECT_EQ(strftime_full_utc(t1), fmt::format("{:%Y-%m-%d %H:%M:%S}", t1));
0 commit comments