[libcxx-commits] [libcxx] [libc++][chrono] implements UTC clock. (PR #90393)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 8 09:06:40 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff f5b9e11eb8ada0e7cc292f9ecd29a220d1265084 3fd4c66cf71e1d77c797fb4962ca95cb9ae3453f -- libcxx/benchmarks/utc_clock.bench.cpp libcxx/include/__chrono/utc_clock.h libcxx/test/libcxx/time/time.clock/time.clock.utc/get_leap_second_info.pass.cpp libcxx/test/libcxx/time/time.clock/time.clock.utc/time.clock.utc.members/from_sys.pass.cpp libcxx/test/libcxx/time/time.clock/time.clock.utc/time.clock.utc.members/to_sys.pass.cpp libcxx/test/std/time/time.clock/time.clock.utc/get_leap_second_info.pass.cpp libcxx/test/std/time/time.clock/time.clock.utc/leap_second_info.members.pass.cpp libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/from_sys.pass.cpp libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/now.pass.cpp libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/to_sys.pass.cpp libcxx/test/std/time/time.clock/time.clock.utc/types.compile.pass.cpp libcxx/test/std/time/time.clock/time.clock.utc/utc_time.ostream.pass.cpp libcxx/test/std/time/time.syn/formatter.utc_time.pass.cpp libcxx/include/__chrono/convert_to_tm.h libcxx/include/__chrono/formatter.h libcxx/include/__chrono/ostream.h libcxx/include/chrono libcxx/modules/std/chrono.inc libcxx/test/libcxx/diagnostics/chrono.nodiscard.verify.cpp libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/to_sys.pass.cpp b/libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/to_sys.pass.cpp
index e599b4b411..9ad7b07bcb 100644
--- a/libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/to_sys.pass.cpp
+++ b/libcxx/test/std/time/time.clock/time.clock.utc/time.clock.utc.members/to_sys.pass.cpp
@@ -164,7 +164,7 @@ static void test_transitions_floating_point() {
};
// Transitions from the start of UTC.
- test_transition(get_sys_time(2287785600), 0s, true); // 1 Jul 1972
+ test_transition(get_sys_time(2287785600), 0s, true); // 1 Jul 1972
test_transition(get_sys_time(2303683200), 1s, true); // 1 Jan 1973
test_transition(get_sys_time(2335219200), 2s, true); // 1 Jan 1974
test_transition(get_sys_time(2366755200), 3s, true); // 1 Jan 1975
@@ -191,7 +191,6 @@ static void test_transitions_floating_point() {
test_transition(get_sys_time(3550089600), 24s, true); // 1 Jul 2012
test_transition(get_sys_time(3644697600), 25s, true); // 1 Jul 2015
test_transition(get_sys_time(3692217600), 26s, true); // 1 Jan 2017
-
}
// Tests whether the return type is the expected type.
``````````
</details>
https://github.com/llvm/llvm-project/pull/90393
More information about the libcxx-commits
mailing list