[all-commits] [llvm/llvm-project] 812963: [libc++][chrono] Improves date formatting. (#86127)

Mark de Wever via All-commits all-commits at lists.llvm.org
Wed Apr 17 08:02:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 812963f6aa2adb5e990f273b8ce1a0eabcdefd7f
      https://github.com/llvm/llvm-project/commit/812963f6aa2adb5e990f273b8ce1a0eabcdefd7f
  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. (#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.



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