[libc++][chrono] Implements formatter duration.
authorMark de Wever <koraq@xs4all.nl>
Sun, 20 Mar 2022 12:40:02 +0000 (13:40 +0100)
committerMark de Wever <koraq@xs4all.nl>
Tue, 18 Oct 2022 18:39:39 +0000 (20:39 +0200)
commit719c3dc6f2f7c7dd01b190496acd8ddecacabe01
tree4bd19d8b56da9a8d21687f5fe9bf4969e5b61c29
parent594fa1474f0c96da864257c0cda31b9b8381cd15
[libc++][chrono] Implements formatter duration.

Partially implements:
- P1361 Integration of chrono with text formatting
- P2372 Fixing locale handling in chrono formatters
- LWG3270 Parsing and formatting %j with durations

Completes:
- P1650R0 std::chrono::days with 'd' suffix
- LWG3262 Formatting of negative durations is not specified
- LWG3314 Is stream insertion behavior locale dependent when Period::type is micro?

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D134742
libcxx/docs/Status/Cxx20Issues.csv
libcxx/docs/Status/Cxx20Papers.csv
libcxx/docs/Status/FormatPaper.csv
libcxx/include/__chrono/convert_to_tm.h
libcxx/include/__chrono/formatter.h
libcxx/include/__chrono/ostream.h
libcxx/include/__chrono/parser_std_format_spec.h
libcxx/include/chrono
libcxx/test/std/time/time.duration/time.duration.nonmember/ostream.pass.cpp [new file with mode: 0644]
libcxx/test/std/time/time.syn/formatter.duration.pass.cpp [new file with mode: 0644]
libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp