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

Mark de Wever via All-commits all-commits at lists.llvm.org
Wed Apr 10 11:45:26 PDT 2024


  Branch: refs/heads/users/mordante/improves_chrono_year_formatting
  Home:   https://github.com/llvm/llvm-project
  Commit: 677956d0923c499f8f6d1f13035f5f60d48ea7c8
      https://github.com/llvm/llvm-project/commit/677956d0923c499f8f6d1f13035f5f60d48ea7c8
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-04-10 (Wed, 10 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