Home
last modified time | relevance | path

Searched refs:tm_hour (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/external/openssh/openbsd-compat/
Dstrptime.c238 if (!(_conv_num(&bp, &tm->tm_hour, 0, 23))) in _strptime()
247 if (!(_conv_num(&bp, &tm->tm_hour, 1, 12))) in _strptime()
277 if (tm->tm_hour > 12) /* i.e., 13:00 AM ?! */ in _strptime()
279 else if (tm->tm_hour == 12) in _strptime()
280 tm->tm_hour = 0; in _strptime()
288 if (tm->tm_hour > 12) /* i.e., 13:00 PM ?! */ in _strptime()
290 else if (tm->tm_hour < 12) in _strptime()
291 tm->tm_hour += 12; in _strptime()
/external/libchrome/base/third_party/nspr/
Dprtime.cc153 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/openscreen/platform/impl/
Dtime_unittest.cc26 epoch_tm.tm_hour = 0; in TEST()
39 epoch_tm.tm_hour += epoch_tm.tm_hour - wrong_tm->tm_hour; in TEST()
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/
Dget_one.pass.cpp60 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()
Dget_one_wide.pass.cpp60 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()
Dget_time.pass.cpp54 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()
Dget_time_wide.pass.cpp54 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()
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/
Dget_one.pass.cpp60 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()
Dget_one_wide.pass.cpp60 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()
Dget_time.pass.cpp53 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()
Dget_time_wide.pass.cpp53 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/ltp/testcases/kernel/device-drivers/rtc/
Drtc01.c81 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/llvm-project/libc/src/time/
Dmktime.cpp59 if (t1->tm_hour < 0 || t1->tm_hour > (HoursPerDay - 1)) in LLVM_LIBC_ENTRYPOINT()
74 if (t1->tm_hour > 3) in LLVM_LIBC_ENTRYPOINT()
122 t1->tm_hour * MinutesPerHour * SecondsPerMin + in LLVM_LIBC_ENTRYPOINT()
/external/autotest/client/tests/rtc/src/
Drtctest.c132 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
142 rtc_tm.tm_hour++; in main()
144 if (rtc_tm.tm_hour == 24) in main()
145 rtc_tm.tm_hour = 0; in main()
166 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
/external/rust/crates/zip/src/
Dtypes.rs130 && tm.tm_hour >= 0 in from_time()
131 && tm.tm_hour <= 23 in from_time()
141 hour: tm.tm_hour as u8, in from_time()
168 tm_hour: self.hour as i32, in to_time()
369 tm_hour: 23, in datetime_from_time_bounds()
381 tm_hour: 0, in datetime_from_time_bounds()
393 tm_hour: 23, in datetime_from_time_bounds()
405 tm_hour: 0, in datetime_from_time_bounds()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/gmtime/
D1-1.c45 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/
Dsetdate.c50 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/rust/crates/chrono/src/sys/
Dunix.rs33 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/llvm-project/libcxx/test/std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/
Dget_one.pass.cpp84 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()
Dget_time.pass.cpp46 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()
Dget_time_wide.pass.cpp46 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/libcxx/test/std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/
Dget_one.pass.cpp84 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()
Dget_time.pass.cpp46 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()
Dget_time_wide.pass.cpp46 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/tcpdump/
Dgmt2local.c52 dt = (loc->tm_hour - gmt->tm_hour) * 60 * 60 + in gmt2local()

12345678910>>...13