[all-commits] [llvm/llvm-project] 997762: [libc++][chrono] implements UTC clock.

Mark de Wever via All-commits all-commits at lists.llvm.org
Mon Jul 8 09:03:18 PDT 2024


  Branch: refs/heads/users/mordante/implements_utc_clock
  Home:   https://github.com/llvm/llvm-project
  Commit: 9977622a2ae8e3d4c57727f7a5c7bee6bb7242c9
      https://github.com/llvm/llvm-project/commit/9977622a2ae8e3d4c57727f7a5c7bee6bb7242c9
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-07-08 (Mon, 08 Jul 2024)

  Changed paths:
    M libcxx/benchmarks/CMakeLists.txt
    A libcxx/benchmarks/utc_clock.bench.cpp
    M libcxx/docs/Status/Cxx20.rst
    M libcxx/docs/Status/Cxx20Issues.csv
    M libcxx/docs/Status/FormatPaper.csv
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__chrono/convert_to_tm.h
    M libcxx/include/__chrono/formatter.h
    M libcxx/include/__chrono/ostream.h
    A libcxx/include/__chrono/utc_clock.h
    M libcxx/include/chrono
    M libcxx/include/module.modulemap
    M libcxx/modules/std/chrono.inc
    M libcxx/test/libcxx/diagnostics/chrono.nodiscard.verify.cpp
    A libcxx/test/libcxx/time/time.clock/time.clock.utc/get_leap_second_info.pass.cpp
    A libcxx/test/libcxx/time/time.clock/time.clock.utc/time.clock.utc.members/from_sys.pass.cpp
    A libcxx/test/libcxx/time/time.clock/time.clock.utc/time.clock.utc.members/to_sys.pass.cpp
    A libcxx/test/std/time/time.clock/time.clock.utc/get_leap_second_info.pass.cpp
    A libcxx/test/std/time/time.clock/time.clock.utc/leap_second_info.members.pass.cpp
    A libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/from_sys.pass.cpp
    A libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/now.pass.cpp
    A libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/to_sys.pass.cpp
    A libcxx/test/std/time/time.clock/time.clock.utc/types.compile.pass.cpp
    A libcxx/test/std/time/time.clock/time.clock.utc/utc_time.ostream.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.utc_time.pass.cpp
    M libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp

  Log Message:
  -----------
  [libc++][chrono] implements UTC clock.

While implementing this feature and its associated LWG issues it turns out
- LWG3316 Correctly define epoch for utc_clock / utc_timepoint
only added non-normative wording to the standard.

Implements parts of:
- P0355 Extending <chrono> to Calendars and Time Zones
- P1361 Integration of chrono with text formatting
- LWG3359 <chrono> leap second support should allow for negative leap seconds


  Commit: 3fd4c66cf71e1d77c797fb4962ca95cb9ae3453f
      https://github.com/llvm/llvm-project/commit/3fd4c66cf71e1d77c797fb4962ca95cb9ae3453f
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-07-08 (Mon, 08 Jul 2024)

  Changed paths:
    M libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/to_sys.pass.cpp

  Log Message:
  -----------
  Review comments


Compare: https://github.com/llvm/llvm-project/compare/77edef4dd99a...3fd4c66cf71e

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