[all-commits] [llvm/llvm-project] 96fbdc: [libc++][chrono] Improves date formatting.
Mark de Wever via All-commits
all-commits at lists.llvm.org
Tue Apr 16 23:09:53 PDT 2024
Branch: refs/heads/users/mordante/improves_chrono_year_formatting
Home: https://github.com/llvm/llvm-project
Commit: 96fbdc08537d716635c50334dfa26e128a2a5c28
https://github.com/llvm/llvm-project/commit/96fbdc08537d716635c50334dfa26e128a2a5c28
Author: Mark de Wever <koraq at xs4all.nl>
Date: 2024-04-17 (Wed, 17 Apr 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