commit | 1f37a4b8df637efa79b8a253161e836caf28242c | [log] [tgz] |
---|---|---|
author | Mark de Wever <koraq@xs4all.nl> | Wed Apr 17 17:02:07 2024 +0200 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Apr 17 08:08:08 2024 -0700 |
tree | 27e59e5b06c45261ce3595a096bb3d5c11d3e234 | |
parent | 45818af8a56a64f761ff69145bd938f593b650e5 [diff] |
[libc++][chrono] Improves date formatting. (#86127) The formatting of years has been done manually since the results of %Y outside the "typical" range may produce unexpected values. The same applies to %F which is identical to %Y-%m-%d. None of these conversion specifiers is affected by the locale used. So it's trivial to manually handle this case. This removes several platform specific ifdefs from the tests. GitOrigin-RevId: 812963f6aa2adb5e990f273b8ce1a0eabcdefd7f