[all-commits] [llvm/llvm-project] f3e7b5: [libc++][chrono] Improves date formatting.
Mark de Wever via All-commits
all-commits at lists.llvm.org
Thu Mar 21 10:00:21 PDT 2024
Branch: refs/heads/users/mordante/improves_chrono_year_formatting
Home: https://github.com/llvm/llvm-project
Commit: f3e7b583dd8eae59c3caeb84ac3967f361f6e6eb
https://github.com/llvm/llvm-project/commit/f3e7b583dd8eae59c3caeb84ac3967f361f6e6eb
Author: Mark de Wever <koraq at xs4all.nl>
Date: 2024-03-21 (Thu, 21 Mar 2024)
Changed paths:
M libcxx/include/__chrono/formatter.h
M libcxx/test/std/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/ostream.pass.cpp
M libcxx/test/std/time/time.clock/time.clock.system/sys_date.ostream.pass.cpp
M libcxx/test/std/time/time.syn/formatter.year_month_day.pass.cpp
Log Message:
-----------
[libc++][chrono] Improves date formatting.
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. Note 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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list