[libc++][format][chrono] Subsecond part of duration
is not correctly formatted
#62082
Labels
libc++
libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Example
Current output (Godbolt link):
Expected output:
It seems that we should convert (via
duration_cast
)__fraction
toprecision
before writing itscount()
.llvm-project/libcxx/include/__chrono/formatter.h
Line 87 in 9d4df97
llvm-project/libcxx/include/__chrono/formatter.h
Lines 101 to 109 in 9d4df97
The text was updated successfully, but these errors were encountered: