Home
last modified time | relevance | path

Searched refs:tm1 (Results 1 – 18 of 18) sorted by relevance

/third_party/musl/libc-test/src/functional/
Dstrftime.c20 static struct tm tm1 = { variable
83 checkStrftime("%c", &tm1, "Sun Jan 3 13:23:45 2016"); in main()
90 checkStrftime("%C", &tm1, "20"); in main()
91 checkStrftime("%03C", &tm1, "020"); in main()
92 checkStrftime("%+3C", &tm1, "+20"); in main()
97 checkStrftime("%F", &tm1, "2016-01-03"); in main()
98 checkStrftime("%012F", &tm1, "002016-01-03"); in main()
99 checkStrftime("%+10F", &tm1, "2016-01-03"); in main()
100 checkStrftime("%+11F", &tm1, "+2016-01-03"); in main()
110 checkStrftime("%g", &tm1, "15"); in main()
[all …]
Dtime.c13 int tm_cmp(struct tm tm1, struct tm tm2) in tm_cmp() argument
15 return tm1.tm_sec != tm2.tm_sec || in tm_cmp()
16 tm1.tm_min != tm2.tm_min || in tm_cmp()
17 tm1.tm_hour != tm2.tm_hour || in tm_cmp()
18 tm1.tm_mday != tm2.tm_mday || in tm_cmp()
19 tm1.tm_mon != tm2.tm_mon || in tm_cmp()
20 tm1.tm_year != tm2.tm_year || in tm_cmp()
21 tm1.tm_wday != tm2.tm_wday || in tm_cmp()
22 tm1.tm_yday != tm2.tm_yday || in tm_cmp()
23 tm1.tm_isdst!= tm2.tm_isdst; in tm_cmp()
Dstrptime.c53 static struct tm tm1 = { variable
93 checkStrptime("20:57:08", "%H:%M:%S", &tm1); in main()
94 checkStrptime("20:57:8", "%R:%S", &tm1); in main()
95 checkStrptime("20:57:08", "%T", &tm1); in main()
98 checkStrptime("20:57:08", "%H : %M : %S", &tm1); in main()
99 checkStrptime("20 57 08", "%H %M %S", &tm1); in main()
100 checkStrptime("20%57%08", "%H %% %M%%%S", &tm1); in main()
101 checkStrptime("foo20bar57qux08 ", "foo %Hbar %M qux%S ", &tm1); in main()
/third_party/openssl/test/
Dgmdifftest.c24 struct tm tm1, tm2, o1; in check_time() local
33 OPENSSL_gmtime(&t1, &tm1); in check_time()
34 o1 = tm1; in check_time()
35 if (!TEST_true(OPENSSL_gmtime_adj(&tm1, 0, offset)) in check_time()
36 || !TEST_int_eq(tm1.tm_year, tm2.tm_year) in check_time()
37 || !TEST_int_eq(tm1.tm_mon, tm2.tm_mon) in check_time()
38 || !TEST_int_eq(tm1.tm_mday, tm2.tm_mday) in check_time()
39 || !TEST_int_eq(tm1.tm_hour, tm2.tm_hour) in check_time()
40 || !TEST_int_eq(tm1.tm_min, tm2.tm_min) in check_time()
41 || !TEST_int_eq(tm1.tm_sec, tm2.tm_sec) in check_time()
[all …]
/third_party/libwebsockets/lib/abstract/transports/
Draw-skt.c355 const lws_token_map_t *tm1, *tm2; in lws_atcrs_compare() local
357 tm1 = lws_abs_get_token(abs1->at_tokens, LTMI_PEER_V_DNS_ADDRESS); in lws_atcrs_compare()
361 if (!tm1 || !tm2 || strcmp(tm1->u.value, tm2->u.value)) in lws_atcrs_compare()
365 tm1 = lws_abs_get_token(abs1->at_tokens, LTMI_PEER_LV_PORT); in lws_atcrs_compare()
367 if (!tm1 || !tm2 || tm1->u.lvalue != tm2->u.lvalue) in lws_atcrs_compare()
371 tm1 = lws_abs_get_token(abs1->at_tokens, LTMI_PEER_LV_TLS_FLAGS); in lws_atcrs_compare()
375 if (!!tm1 != !!tm2) in lws_atcrs_compare()
379 if (!tm1) in lws_atcrs_compare()
383 if (tm1->u.lvalue != tm2->u.lvalue) in lws_atcrs_compare()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dos_win32.c65 struct tm tm, *tm1; in os_mktime() local
85 tm1 = localtime(&t_local); in os_mktime()
86 if (tm1) { in os_mktime()
87 t1 = mktime(tm1); in os_mktime()
88 tm1 = gmtime(&t_local); in os_mktime()
89 if (tm1) { in os_mktime()
90 t2 = mktime(tm1); in os_mktime()
Dos_unix.c131 struct tm tm, *tm1; in os_mktime() local
151 tm1 = localtime(&t_local); in os_mktime()
152 if (tm1) { in os_mktime()
153 t1 = mktime(tm1); in os_mktime()
154 tm1 = gmtime(&t_local); in os_mktime()
155 if (tm1) { in os_mktime()
156 t2 = mktime(tm1); in os_mktime()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dos_win32.c65 struct tm tm, *tm1; in os_mktime() local
85 tm1 = localtime(&t_local); in os_mktime()
86 if (tm1) { in os_mktime()
87 t1 = mktime(tm1); in os_mktime()
88 tm1 = gmtime(&t_local); in os_mktime()
89 if (tm1) { in os_mktime()
90 t2 = mktime(tm1); in os_mktime()
Dos_unix.c137 struct tm tm, *tm1; in os_mktime() local
157 tm1 = localtime(&t_local); in os_mktime()
158 if (tm1) { in os_mktime()
159 t1 = mktime(tm1); in os_mktime()
160 tm1 = gmtime(&t_local); in os_mktime()
161 if (tm1) { in os_mktime()
162 t2 = mktime(tm1); in os_mktime()
/third_party/skia/gm/
Dshadertext3.cpp111 for (size_t tm1 = 0; tm1 < SK_ARRAY_COUNT(kTileModes); ++tm1) { in onDraw() local
119 fillPaint.setShader(fBmp.makeShader(kTileModes[tm0], kTileModes[tm1], in onDraw()
/third_party/toybox/toys/pending/
Dlast.c72 static void seize_duration(time_t tm0, time_t tm1) in seize_duration() argument
75 double diff = difftime(tm1, tm0); in seize_duration()
77 diff = (diff > 0) ? (tm1 - tm0) : 0; in seize_duration()
80 snprintf(toybuf+18, 8, "- %s", ctime(&tm1) + 11); // Logout Time. in seize_duration()
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dbasic.rb879 tm1 = TestMessage2.new(:foo => 100)
881 m.repeated_msg.push tm1
882 assert m.repeated_msg[-1] == tm1
/third_party/typescript/tests/baselines/reference/
DvariadicTuples1.js121 let tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string]
475 var tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string] variable
669 declare let tm1: [boolean, string];
DvariadicTuples1.symbols384 let tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string]
385 >tm1 : Symbol(tm1, Decl(variadicTuples1.ts, 119, 3))
DvariadicTuples1.types426 let tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string]
427 >tm1 : [boolean, string]
DvariadicTuples1.errors.txt172 let tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string]
/third_party/typescript/tests/cases/conformance/types/tuple/
DvariadicTuples1.ts123 let tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string]
/third_party/protobuf/ruby/tests/
Dcommon_tests.rb665 tm1 = proto_module::TestMessage2.new(:foo => 100)
667 m.repeated_msg.push tm1
668 assert m.repeated_msg[-1] == tm1