/external/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc02.c | 35 tm->tm_hour, in rtctime_to_str() 75 if ((set_tm->tm_hour != read_tm->tm_hour) in rtc_tm_cmp() 79 seconds1 = (set_tm->tm_hour * 3600) + (set_tm->tm_min * 60) + set_tm->tm_sec; in rtc_tm_cmp() 80 seconds2 = (read_tm->tm_hour * 3600) + (read_tm->tm_min * 60) + read_tm->tm_sec; in rtc_tm_cmp() 107 if (set_tm.tm_hour == 0) in set_rtc_test() 108 set_tm.tm_hour += 1; in set_rtc_test() 110 set_tm.tm_hour -= 1; in set_rtc_test()
|
D | rtc01.c | 81 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in read_alarm_test() 94 rtc_tm.tm_hour++; in read_alarm_test() 97 if (rtc_tm.tm_hour == 24) in read_alarm_test() 98 rtc_tm.tm_hour = 0; in read_alarm_test() 120 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in read_alarm_test()
|
/external/cronet/base/third_party/nspr/ |
D | prtime.cc | 156 numSecs = copy.tm_yday * 86400 + copy.tm_hour * 3600 + copy.tm_min * 60 + in PR_ImplodeTime() 218 time->tm_hour += time->tm_min / 60; in ApplySecOffset() 222 time->tm_hour--; in ApplySecOffset() 226 if (time->tm_hour < 0) { in ApplySecOffset() 228 time->tm_hour += 24; in ApplySecOffset() 246 } else if (time->tm_hour > 23) { in ApplySecOffset() 248 time->tm_hour -= 24; in ApplySecOffset() 301 time->tm_hour += time->tm_min / 60; in PR_NormalizeTime() 305 time->tm_hour--; in PR_NormalizeTime() 309 if (time->tm_hour < 0 || time->tm_hour >= 24) { in PR_NormalizeTime() [all …]
|
/external/libchrome/base/third_party/nspr/ |
D | prtime.cc | 153 numSecs = copy.tm_yday * 86400 + copy.tm_hour * 3600 + copy.tm_min * 60 + in PR_ImplodeTime() 215 time->tm_hour += time->tm_min / 60; in ApplySecOffset() 219 time->tm_hour--; in ApplySecOffset() 223 if (time->tm_hour < 0) { in ApplySecOffset() 225 time->tm_hour += 24; in ApplySecOffset() 243 } else if (time->tm_hour > 23) { in ApplySecOffset() 245 time->tm_hour -= 24; in ApplySecOffset() 298 time->tm_hour += time->tm_min / 60; in PR_NormalizeTime() 302 time->tm_hour--; in PR_NormalizeTime() 306 if (time->tm_hour < 0 || time->tm_hour >= 24) { in PR_NormalizeTime() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/localization/locale.categories/category.time/locale.time.get.byname/ |
D | get_one_wide.pass.cpp | 71 assert(t.tm_hour == 23); in main() 93 assert(t.tm_hour == 23); in main() 113 assert(t.tm_hour == 23); in main() 131 assert(t.tm_hour == 23); in main() 149 assert(t.tm_hour == 23); in main() 166 assert(t.tm_hour == 23); in main() 180 assert(t.tm_hour == 23); in main() 204 assert(t.tm_hour == 11); in main() 206 assert(t.tm_hour == 23); in main()
|
D | get_one.pass.cpp | 69 assert(t.tm_hour == 23); in main() 91 assert(t.tm_hour == 23); in main() 111 assert(t.tm_hour == 23); in main() 129 assert(t.tm_hour == 23); in main() 156 assert(t.tm_hour == 23); in main() 174 assert(t.tm_hour == 23); in main() 205 assert(t.tm_hour == 23); in main() 233 assert(t.tm_hour == 11); in main() 235 assert(t.tm_hour == 23); in main()
|
D | get_time.pass.cpp | 54 assert(t.tm_hour == 13); in main() 66 assert(t.tm_hour == 13); in main() 78 assert(t.tm_hour == 13); in main() 90 assert(t.tm_hour == 13); in main()
|
D | get_time_wide.pass.cpp | 56 assert(t.tm_hour == 13); in main() 68 assert(t.tm_hour == 13); in main() 80 assert(t.tm_hour == 13); in main() 92 assert(t.tm_hour == 13); in main()
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/ |
D | get_one.pass.cpp | 60 assert(t.tm_hour == 23); in main() 76 assert(t.tm_hour == 23); in main() 88 assert(t.tm_hour == 23); in main() 104 assert(t.tm_hour == 23); in main() 123 assert(t.tm_hour == 23); in main() 139 assert(t.tm_hour == 23); in main() 152 assert(t.tm_hour == 23); in main() 168 assert(t.tm_hour == 23); in main()
|
D | get_one_wide.pass.cpp | 60 assert(t.tm_hour == 23); in main() 76 assert(t.tm_hour == 23); in main() 88 assert(t.tm_hour == 23); in main() 104 assert(t.tm_hour == 23); in main() 122 assert(t.tm_hour == 23); in main() 139 assert(t.tm_hour == 23); in main() 153 assert(t.tm_hour == 23); in main() 170 assert(t.tm_hour == 23); in main()
|
D | get_time.pass.cpp | 53 assert(t.tm_hour == 13); in main() 65 assert(t.tm_hour == 13); in main() 77 assert(t.tm_hour == 13); in main() 89 assert(t.tm_hour == 13); in main()
|
D | get_time_wide.pass.cpp | 53 assert(t.tm_hour == 13); in main() 65 assert(t.tm_hour == 13); in main() 77 assert(t.tm_hour == 13); in main() 89 assert(t.tm_hour == 13); in main()
|
/external/openscreen/platform/impl/ |
D | time_unittest.cc | 26 epoch_tm.tm_hour = 0; in TEST() 39 epoch_tm.tm_hour += epoch_tm.tm_hour - wrong_tm->tm_hour; in TEST()
|
/external/boringssl/src/crypto/asn1/ |
D | posix_time.c | 147 tm->tm_hour, tm->tm_min, tm->tm_sec, out); in OPENSSL_tm_to_posix() 153 &out_tm->tm_mday, &out_tm->tm_hour, &out_tm->tm_min, in OPENSSL_posix_to_tm() 193 tm->tm_hour, tm->tm_min, tm->tm_sec, &posix_time)) { in OPENSSL_gmtime_adj() 198 &tm->tm_year, &tm->tm_mon, &tm->tm_mday, &tm->tm_hour, &tm->tm_min, in OPENSSL_gmtime_adj() 212 to->tm_hour, to->tm_min, to->tm_sec, &time_to)) { in OPENSSL_gmtime_diff() 217 from->tm_mday, from->tm_hour, from->tm_min, in OPENSSL_gmtime_diff()
|
/external/cronet/third_party/boringssl/src/crypto/asn1/ |
D | posix_time.c | 147 tm->tm_hour, tm->tm_min, tm->tm_sec, out); in OPENSSL_tm_to_posix() 153 &out_tm->tm_mday, &out_tm->tm_hour, &out_tm->tm_min, in OPENSSL_posix_to_tm() 193 tm->tm_hour, tm->tm_min, tm->tm_sec, &posix_time)) { in OPENSSL_gmtime_adj() 198 &tm->tm_year, &tm->tm_mon, &tm->tm_mday, &tm->tm_hour, &tm->tm_min, in OPENSSL_gmtime_adj() 212 to->tm_hour, to->tm_min, to->tm_sec, &time_to)) { in OPENSSL_gmtime_diff() 217 from->tm_mday, from->tm_hour, from->tm_min, in OPENSSL_gmtime_diff()
|
/external/musl/src/time/ |
D | strptime.c | 63 dest = &tm->tm_hour; in strptime() 68 dest = &tm->tm_hour; in strptime() 96 tm->tm_hour %= 12; in strptime() 103 tm->tm_hour %= 12; in strptime() 104 tm->tm_hour += 12; in strptime()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/gmtime/ |
D | 1-1.c | 45 if ((tm_ptr->tm_hour >= 0) && (tm_ptr->tm_hour <= 23)) { in main() 46 printf("hour %02d\n", tm_ptr->tm_hour); in main()
|
/external/linux-kselftest/tools/testing/selftests/rtc/ |
D | setdate.c | 50 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main() 54 new.tm_hour, new.tm_min, new.tm_sec); in main() 73 current.tm_hour, current.tm_min, current.tm_sec); in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/include/__chrono/ |
D | convert_to_tm.h | 97 __result.tm_hour = __sec / 3600; in __convert_to_tm() 110 __result.tm_hour = __sec / 3600; in __convert_to_tm() 147 if constexpr (sizeof(std::chrono::hours::rep) > sizeof(__result.tm_hour)) in __convert_to_tm() 148 if (__value.hours().count() > std::numeric_limits<decltype(__result.tm_hour)>::max()) in __convert_to_tm() 150 __result.tm_hour = __value.hours().count(); in __convert_to_tm()
|
/external/rust/crates/chrono/src/sys/ |
D | unix.rs | 33 tm.tm_hour = rust_tm.tm_hour; in rust_tm_to_tm() 45 rust_tm.tm_hour = tm.tm_hour; in tm_to_rust_tm()
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/ |
D | get_one.pass.cpp | 84 assert(t.tm_hour == 9); in main() 134 assert(t.tm_hour == 19); in main() 169 assert(t.tm_hour == 21); in main() 180 assert(t.tm_hour == 9); in main() 191 assert(t.tm_hour == 0); in main() 202 assert(t.tm_hour == 12); in main() 213 assert(t.tm_hour == 9); in main() 224 assert(t.tm_hour == 0); in main() 243 assert(t.tm_hour == 21); in main() 274 assert(t.tm_hour == 21); in main()
|
D | get_time.pass.cpp | 46 assert(t.tm_hour == 0); in main() 57 assert(t.tm_hour == 23); in main() 68 assert(t.tm_hour == 0); in main() 101 assert(t.tm_hour == 2); in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/ |
D | get_one.pass.cpp | 84 assert(t.tm_hour == 9); in main() 134 assert(t.tm_hour == 19); in main() 169 assert(t.tm_hour == 21); in main() 180 assert(t.tm_hour == 9); in main() 191 assert(t.tm_hour == 0); in main() 202 assert(t.tm_hour == 12); in main() 213 assert(t.tm_hour == 9); in main() 224 assert(t.tm_hour == 0); in main() 243 assert(t.tm_hour == 21); in main() 274 assert(t.tm_hour == 21); in main()
|
D | get_time.pass.cpp | 46 assert(t.tm_hour == 0); in main() 57 assert(t.tm_hour == 23); in main() 68 assert(t.tm_hour == 0); in main() 101 assert(t.tm_hour == 2); in main()
|
/external/ltp/lib/ |
D | tst_rtctime.c | 92 tm->tm_hour = secs / 3600; in tst_rtc_time_to_tm() 93 secs -= tm->tm_hour * 3600; in tst_rtc_time_to_tm() 107 tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in tst_rtc_tm_to_time()
|