[all-commits] [llvm/llvm-project] 0aeab5: [libc++][chrono] Improves date formatting.

Mark de Wever via All-commits all-commits at lists.llvm.org
Thu Mar 21 07:33:53 PDT 2024


  Branch: refs/heads/users/mordante/improves_chrono_year_formatting
  Home:   https://github.com/llvm/llvm-project
  Commit: 0aeab5a82110d6e3d01fb8c8562f5569c84203a3
      https://github.com/llvm/llvm-project/commit/0aeab5a82110d6e3d01fb8c8562f5569c84203a3
  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