Home
last modified time | relevance | path

Searched refs:tm_hour (Results 1 - 25 of 212) sorted by relevance

123456789

/third_party/ltp/testcases/kernel/device-drivers/rtc/
H A Drtc02.c35 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()
H A 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()
/third_party/musl/libc-test/src/functional/
H A Dstrptime.c26 tm.tm_hour != expected->tm_hour || in checkStrptime()
56 .tm_hour = 20,
65 .tm_hour = 0,
74 .tm_hour = 0,
83 .tm_hour = 0,
H A Dstrftime.c23 .tm_hour = 13,
35 .tm_hour = 5,
47 .tm_hour = 12,
59 .tm_hour = 0,
71 .tm_hour = 0,
H A Dtime.c17 tm1.tm_hour != tm2.tm_hour || in tm_cmp()
33 tm.tm_sec, tm.tm_min, tm.tm_hour, in tm_str()
40 .tm_sec = ss, .tm_min = mm, .tm_hour = hh, \
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/
H A Dtime_test.cpp193 EXPECT_EQ(8, tm.tm_hour); in HWTEST_F()
215 EXPECT_EQ(3, time->tm_hour); in HWTEST_F()
326 EXPECT_EQ(3, time->tm_hour); in HWTEST_F()
558 EXPECT_EQ(8, tm.tm_hour); in HWTEST_F()
577 struct tm tim = { .tm_hour = 12 }; in HWTEST_F()
579 EXPECT_EQ(0, tim.tm_hour); in HWTEST_F()
581 tim = { .tm_hour = 12 }; in HWTEST_F()
583 EXPECT_EQ(0, tim.tm_hour); in HWTEST_F()
585 tim = { .tm_hour = 12 }; in HWTEST_F()
587 EXPECT_EQ(0, tim.tm_hour); in HWTEST_F()
[all...]
/third_party/musl/porting/liteos_a/kernel/src/time/
H A Dstrptime.c63 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()
/third_party/musl/porting/liteos_m/kernel/src/time/
H A Dstrptime.c63 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()
/third_party/musl/porting/uniproton/kernel/src/time/
H A Dstrptime.c63 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()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/gmtime/
H A 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()
/third_party/tzdata/
H A Dstrftime.c248 pt = _conv(t->tm_hour, "%02d", pt, ptlim); in _fmt()
251 pt = _conv((t->tm_hour % 12) ? in _fmt()
252 (t->tm_hour % 12) : 12, in _fmt()
261 ** _conv(t->tm_hour % 12 ? in _fmt()
262 ** t->tm_hour % 12 : 12, 2, ' '); in _fmt()
269 pt = _conv(t->tm_hour, "%2d", pt, ptlim); in _fmt()
282 ** _conv(t->tm_hour, 2, ' '); in _fmt()
289 pt = _conv((t->tm_hour % 12) ? in _fmt()
290 (t->tm_hour % 12) : 12, in _fmt()
303 pt = _add((t->tm_hour > in _fmt()
[all...]
/third_party/ltp/lib/
H A Dtst_rtctime.c92 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()
/third_party/musl/porting/linux/user/src/time/
H A Dstrftime.c134 val = tm->tm_hour; in __strftime_fmt_1()
137 val = tm->tm_hour; in __strftime_fmt_1()
150 val = tm->tm_hour; in __strftime_fmt_1()
154 val = tm->tm_hour; in __strftime_fmt_1()
171 item = tm->tm_hour >= __HALF_HOUR__ ? PM_STR : AM_STR; in __strftime_fmt_1()
174 item = tm->tm_hour >= __HALF_HOUR__ ? PM_STR_LOWER : AM_STR_LOWER; in __strftime_fmt_1()
H A Dstrptime.c216 dest = &tm->tm_hour; in strptime()
222 dest = &tm->tm_hour; in strptime()
251 tm->tm_hour %= __STRPTIME_HOUR_CLOCK_12; in strptime()
258 tm->tm_hour %= __STRPTIME_HOUR_CLOCK_12; in strptime()
259 tm->tm_hour += __STRPTIME_HOUR_CLOCK_12; in strptime()
/third_party/musl/src/time/
H A Dstrftime.c97 val = tm->tm_hour; in __strftime_fmt_1()
100 val = tm->tm_hour; in __strftime_fmt_1()
110 val = tm->tm_hour; in __strftime_fmt_1()
114 val = tm->tm_hour; in __strftime_fmt_1()
131 item = tm->tm_hour >= 12 ? PM_STR : AM_STR; in __strftime_fmt_1()
134 item = tm->tm_hour >= 12 ? PM_STR_LOWER : AM_STR_LOWER; in __strftime_fmt_1()
H A Dstrptime.c165 dest = &tm->tm_hour; in strptime()
171 dest = &tm->tm_hour; in strptime()
200 tm->tm_hour %= 12; in strptime()
207 tm->tm_hour %= 12; in strptime()
208 tm->tm_hour += 12; in strptime()
/third_party/musl/libc-test/src/functionalext/supplement/time/
H A Dclock_settime.c34 .tm_hour = 18, in clock_settime_0100()
57 .tm_hour = 18, in clock_settime64_0100()
H A Dgmtime_sup.c501 gmtm->tm_hour, in gmtime_0100()
544 gmtm->tm_hour, in gmtime64_0100()
/third_party/musl/libc-test/src/functionalext/time/
H A Dstrptime_ext.c94 (tmTime.tm_year+gYearBase), tmTime.tm_mon, tmTime.tm_mday, tmTime.tm_hour, in strptime_0200()
149 int cnt = sprintf(buffResult, "%d", tmTime.tm_hour); in strptime_0500()
166 int cnt = sprintf(buffResult, "%d", tmTime.tm_hour); in strptime_0600()
290 int cnt = sprintf(buffResult, "%d", timeptr->tm_hour); in strptime_1200()
319 int cnt = sprintf(buffResult, "%d", timeptr->tm_hour); in strptime_1300()
546 int cnt = sprintf(buffResult, "%d:%d:%d", tmTime.tm_hour, tmTime.tm_min, tmTime.tm_sec); in strptime_2700()
678 int cnt = sprintf(buffResult, "%d:%d:%d", tmTime.tm_hour, tmTime.tm_min, tmTime.tm_sec); in strptime_3600()
/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Da_time.c179 tmp.tm_hour = n; in ossl_asn1_time_to_tm()
301 ts->tm_mday, ts->tm_hour, ts->tm_min, in ossl_asn1_time_from_tm()
306 ts->tm_mday, ts->tm_hour, ts->tm_min, in ossl_asn1_time_from_tm()
522 stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
528 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
536 stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
542 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
/third_party/openssl/crypto/asn1/
H A Da_time.c179 tmp.tm_hour = n; in ossl_asn1_time_to_tm()
301 ts->tm_mday, ts->tm_hour, ts->tm_min, in ossl_asn1_time_from_tm()
306 ts->tm_mday, ts->tm_hour, ts->tm_min, in ossl_asn1_time_from_tm()
522 stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
528 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
536 stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
542 _asn1_mon[stm.tm_mon], stm.tm_mday, stm.tm_hour, in ossl_asn1_time_print_ex()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/asctime/
H A D1-1.c45 time_ptr.tm_hour = HOUR; in main()
55 time_ptr.tm_mday, time_ptr.tm_hour, in main()
/third_party/nghttp2/src/
H A Dtimegm.c46 t = ((int64_t)days * 24 + tm->tm_hour) * 3600 + tm->tm_min * 60 + tm->tm_sec; in nghttp2_timegm()
79 t = ((int64_t)days * 24 + tm->tm_hour) * 3600 + tm->tm_min * 60 + tm->tm_sec; in nghttp2_timegm_without_yday()
/third_party/openssl/test/
H A Dgmdifftest.c39 || !TEST_int_eq(tm1.tm_hour, tm2.tm_hour) in check_time()
/third_party/ffmpeg/libavutil/
H A Dparseutils.c513 dt->tm_hour = val; in av_small_strptime()
584 t += 3600 * tm->tm_hour + 60 * tm->tm_min + tm->tm_sec; in av_timegm()
661 dt.tm_hour = 0; in av_parse_time()
674 t = dt.tm_hour * 3600 + dt.tm_min * 60 + dt.tm_sec; in av_parse_time()
722 tzoffset = sign * (tz.tm_hour * 60 + tz.tm_min) * 60; in av_parse_time()
727 dt2.tm_hour = dt.tm_hour; in av_parse_time()

Completed in 12 milliseconds

123456789