Home
last modified time | relevance | path

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

12345678

/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/libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/
Dget_one.pass.cpp57 assert(t.tm_hour == 23); in main()
73 assert(t.tm_hour == 23); in main()
85 assert(t.tm_hour == 23); in main()
101 assert(t.tm_hour == 23); in main()
120 assert(t.tm_hour == 23); in main()
136 assert(t.tm_hour == 23); in main()
149 assert(t.tm_hour == 23); in main()
165 assert(t.tm_hour == 23); in main()
Dget_one_wide.pass.cpp57 assert(t.tm_hour == 23); in main()
73 assert(t.tm_hour == 23); in main()
85 assert(t.tm_hour == 23); in main()
101 assert(t.tm_hour == 23); in main()
119 assert(t.tm_hour == 23); in main()
136 assert(t.tm_hour == 23); in main()
150 assert(t.tm_hour == 23); in main()
167 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/linux-kselftest/tools/testing/selftests/timers/
Drtctest.c86 a->tm_hour != b->tm_hour || in compare_dates()
201 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
211 rtc_tm.tm_hour++; in main()
213 if (rtc_tm.tm_hour == 24) in main()
214 rtc_tm.tm_hour = 0; in main()
241 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
Drtctest_setdate.c59 sscanf(time, "%d:%d:%d", &new.tm_hour, &new.tm_min, &new.tm_sec); in main()
63 new.tm_hour, new.tm_min, new.tm_sec); in main()
82 current.tm_hour, current.tm_min, current.tm_sec); in main()
/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/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()
Dget_many.pass.cpp50 assert(t.tm_hour == 22); in main()
64 assert(t.tm_hour == 22); in main()
/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/tcpdump/
Dgmt2local.c52 dt = (loc->tm_hour - gmt->tm_hour) * 60 * 60 + in gmt2local()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/asctime/
D1-1.c45 time_ptr.tm_hour = HOUR; in main()
55 time_ptr.tm_mday, time_ptr.tm_hour, in main()
/external/pdfium/core/fxcrt/
Dfx_system_unittest.cpp168 good_time.tm_hour = 11; in TEST()
181 year_time.tm_hour = 11; in TEST()
197 bad_time.tm_hour = -1; in TEST()
208 feb_time.tm_hour = 12; in TEST()
/external/libcxx/test/std/input.output/iostream.format/ext.manip/
Dget_time.pass.cpp51 assert(t.tm_hour == 23); in main()
67 assert(t.tm_hour == 23); in main()
Dput_time.pass.cpp62 t.tm_hour = 23; in main()
78 t.tm_hour = 23; in main()
/external/boringssl/src/crypto/asn1/
Da_utctm.c116 tm->tm_hour = n; in asn1_utctime_to_tm()
230 ts->tm_mon + 1, ts->tm_mday, ts->tm_hour, ts->tm_min, in ASN1_UTCTIME_adj()
280 tm.tm_hour = g2(s->data + 6);
Dtime_support.c114 offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec; in julian_adj()
167 tm->tm_hour = time_sec / 3600; in OPENSSL_gmtime_adj()
/external/curl/lib/
Dparsedate.c276 int tm_hour; member
315 + tm->tm_hour) * 60 + tm->tm_min) * 60 + tm->tm_sec; in my_timegm()
513 tm.tm_hour = hournum; in parsedate()
/external/webrtc/webrtc/base/
Dtimeutils_unittest.cc200 tm.tm_hour = rtc::CreateRandomId() % 24; in TestTmToSeconds()
224 tm.tm_hour = -1; in TestTmToSeconds()
227 tm.tm_hour = 24; in TestTmToSeconds()
/external/xmlrpcpp/src/
DXmlRpcValue.cpp145 t1.tm_hour == t2.tm_hour && t1.tm_mday == t1.tm_mday && in tmEq()
408 …if (sscanf(stime.c_str(),"%4d%2d%2dT%2d:%2d:%2d",&t.tm_year,&t.tm_mon,&t.tm_mday,&t.tm_hour,&t.tm_… in timeFromXml()
423 t->tm_year,t->tm_mon,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec); in timeToXml()
575 t->tm_year,t->tm_mon,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec); in write()
/external/toybox/toys/posix/
Ddate.c89 sscanf(str, "%2u%2u%2u%2u%n", &tm->tm_mon, &tm->tm_mday, &tm->tm_hour,
205 check_range(tm.tm_hour, 0, 23); in date_main()

12345678