【发布时间】:2018-08-23 13:09:17
【问题描述】:
由于std::filesystem::file_time_type在C++17中使用trivial clock,有没有办法用C++17**检索file_time_type的实际时钟类型?
目标是将时间转换为std::chrono::system_clock 以使用它,例如在一个流中。
** 在 C++20 中,file_time_type 将使用 std::chrono::file_clock,它具有 operator<<,并且可以使用 std::chrono::clock_cast 转换为其他时钟。
【问题讨论】:
-
file_time_type::clock?
标签: c++ c++17 chrono std-filesystem