Home
last modified time | relevance | path

Searched refs:tm2 (Results 1 – 19 of 19) sorted by relevance

/third_party/musl/libc-test/src/functional/
Dstrftime.c32 static struct tm tm2 = { variable
84 checkStrftime("%c", &tm2, "Mon Jan 5 05:17:53 +10009"); in main()
93 checkStrftime("%C", &tm2, "100"); in main()
101 checkStrftime("%F", &tm2, "+10009-01-05"); in main()
102 checkStrftime("%011F", &tm2, "10009-01-05"); in main()
111 checkStrftime("%g", &tm2, "09"); in main()
115 checkStrftime("%04G", &tm2, "10009"); in main()
118 checkStrftime("%r", &tm2, "05:17:53 AM"); in main()
126 checkStrftime("%s", &tm2, "253686748673"); in main()
130 checkStrftime("%T", &tm2, "05:17:53"); 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.c62 static struct tm tm2 = { variable
104 checkStrptime("1991-08-25", "%Y-%m-%d", &tm2); in main()
105 checkStrptime("25.08.91", "%d.%m.%y", &tm2); in main()
106 checkStrptime("08/25/91", "%D", &tm2); in main()
112 checkStrptime("683078400", "%s", &tm2); in main()
/third_party/openssl/test/
Dgmdifftest.c24 struct tm tm1, tm2, o1; in check_time() local
32 OPENSSL_gmtime(&t2, &tm2); in check_time()
36 if (!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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dos_win32.c104 struct tm *tm2; in os_gmtime() local
107 tm2 = gmtime(&t2); in os_gmtime()
108 if (tm2 == NULL) in os_gmtime()
110 tm->sec = tm2->tm_sec; in os_gmtime()
111 tm->min = tm2->tm_min; in os_gmtime()
112 tm->hour = tm2->tm_hour; in os_gmtime()
113 tm->day = tm2->tm_mday; in os_gmtime()
114 tm->month = tm2->tm_mon + 1; in os_gmtime()
115 tm->year = tm2->tm_year + 1900; in os_gmtime()
Dos_internal.c82 struct tm *tm2; in os_gmtime() local
85 tm2 = gmtime(&t2); in os_gmtime()
86 if (tm2 == NULL) in os_gmtime()
88 tm->sec = tm2->tm_sec; in os_gmtime()
89 tm->min = tm2->tm_min; in os_gmtime()
90 tm->hour = tm2->tm_hour; in os_gmtime()
91 tm->day = tm2->tm_mday; in os_gmtime()
92 tm->month = tm2->tm_mon + 1; in os_gmtime()
93 tm->year = tm2->tm_year + 1900; in os_gmtime()
Dos_unix.c170 struct tm *tm2; in os_gmtime() local
173 tm2 = gmtime(&t2); in os_gmtime()
174 if (tm2 == NULL) in os_gmtime()
176 tm->sec = tm2->tm_sec; in os_gmtime()
177 tm->min = tm2->tm_min; in os_gmtime()
178 tm->hour = tm2->tm_hour; in os_gmtime()
179 tm->day = tm2->tm_mday; in os_gmtime()
180 tm->month = tm2->tm_mon + 1; in os_gmtime()
181 tm->year = tm2->tm_year + 1900; in os_gmtime()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dos_win32.c104 struct tm *tm2; in os_gmtime() local
107 tm2 = gmtime(&t2); in os_gmtime()
108 if (tm2 == NULL) in os_gmtime()
110 tm->sec = tm2->tm_sec; in os_gmtime()
111 tm->min = tm2->tm_min; in os_gmtime()
112 tm->hour = tm2->tm_hour; in os_gmtime()
113 tm->day = tm2->tm_mday; in os_gmtime()
114 tm->month = tm2->tm_mon + 1; in os_gmtime()
115 tm->year = tm2->tm_year + 1900; in os_gmtime()
Dos_internal.c88 struct tm *tm2; in os_gmtime() local
91 tm2 = gmtime(&t2); in os_gmtime()
92 if (tm2 == NULL) in os_gmtime()
94 tm->sec = tm2->tm_sec; in os_gmtime()
95 tm->min = tm2->tm_min; in os_gmtime()
96 tm->hour = tm2->tm_hour; in os_gmtime()
97 tm->day = tm2->tm_mday; in os_gmtime()
98 tm->month = tm2->tm_mon + 1; in os_gmtime()
99 tm->year = tm2->tm_year + 1900; in os_gmtime()
Dos_unix.c176 struct tm *tm2; in os_gmtime() local
179 tm2 = gmtime(&t2); in os_gmtime()
180 if (tm2 == NULL) in os_gmtime()
182 tm->sec = tm2->tm_sec; in os_gmtime()
183 tm->min = tm2->tm_min; in os_gmtime()
184 tm->hour = tm2->tm_hour; in os_gmtime()
185 tm->day = tm2->tm_mday; in os_gmtime()
186 tm->month = tm2->tm_mon + 1; in os_gmtime()
187 tm->year = tm2->tm_year + 1900; in os_gmtime()
/third_party/boost/libs/chrono/test/io/
Dtime_point_output.cpp226 std::tm tm2; in test_gmtime() local
227 std::memset(&tm2, 0, sizeof(std::tm)); in test_gmtime()
228 if (gmtime_r(&t, &tm2)) in test_gmtime()
230 tm2.tm_isdst = -1; in test_gmtime()
231 (void)mktime(&tm2); in test_gmtime()
233 BOOST_TEST_EQ( tm.tm_year , tm2.tm_year ); in test_gmtime()
234 BOOST_TEST_EQ( tm.tm_mon , tm2.tm_mon ); in test_gmtime()
235 BOOST_TEST_EQ( tm.tm_mday , tm2.tm_mday ); in test_gmtime()
236 BOOST_TEST_EQ( tm.tm_hour , tm2.tm_hour); in test_gmtime()
237 BOOST_TEST_EQ( tm.tm_min , tm2.tm_min ); in test_gmtime()
[all …]
/third_party/boost/libs/interprocess/test/
Dmutex_test_template.hpp249 boost::interprocess::ipcdetail::OS_thread_t tm2; in test_mutex_lock() local
250 boost::interprocess::ipcdetail::thread_launch(tm2, thread_adapter<M>(&lock_and_sleep, &d2, mtx)); in test_mutex_lock()
256 boost::interprocess::ipcdetail::thread_join(tm2); in test_mutex_lock()
284 boost::interprocess::ipcdetail::OS_thread_t tm2; in test_mutex_lock_timeout() local
285 …boost::interprocess::ipcdetail::thread_launch(tm2, thread_adapter<M>(&lock_and_catch_errors, &d2, … in test_mutex_lock_timeout()
290 boost::interprocess::ipcdetail::thread_join(tm2); in test_mutex_lock_timeout()
316 boost::interprocess::ipcdetail::OS_thread_t tm2; in test_mutex_try_lock() local
317 …boost::interprocess::ipcdetail::thread_launch(tm2, thread_adapter<M>(&try_lock_and_sleep, &d2, mtx… in test_mutex_try_lock()
321 boost::interprocess::ipcdetail::thread_join(tm2); in test_mutex_try_lock()
347 boost::interprocess::ipcdetail::OS_thread_t tm2; in test_mutex_timed_lock() local
[all …]
/third_party/libwebsockets/lib/abstract/transports/
Draw-skt.c355 const lws_token_map_t *tm1, *tm2; in lws_atcrs_compare() local
358 tm2 = lws_abs_get_token(abs2->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()
366 tm2 = lws_abs_get_token(abs2->at_tokens, LTMI_PEER_LV_PORT); in lws_atcrs_compare()
367 if (!tm1 || !tm2 || tm1->u.lvalue != tm2->u.lvalue) in lws_atcrs_compare()
372 tm2 = lws_abs_get_token(abs2->at_tokens, LTMI_PEER_LV_TLS_FLAGS); in lws_atcrs_compare()
375 if (!!tm1 != !!tm2) in lws_atcrs_compare()
383 if (tm1->u.lvalue != tm2->u.lvalue) in lws_atcrs_compare()
/third_party/boost/boost/chrono/io/
Dtime_point_io.hpp285 std::tm tm2; in get() local
286 std::memset(&tm2, 0, sizeof(std::tm)); in get()
287 that_.get_weekday(b, e, iob, err, &tm2); in get()
295 std::tm tm2; in get() local
296 std::memset(&tm2, 0, sizeof(std::tm)); in get()
297 that_.get_monthname(b, e, iob, err, &tm2); in get()
/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_libc.cc136 std::tm tm2; in make_time() local
137 const std::tm* tmp = local_time(t, &tm2); in make_time()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_libc.cc142 std::tm tm2; in make_time() local
143 const std::tm* tmp = local_time(t, &tm2); in make_time()
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dbasic.rb880 tm2 = TestMessage2.new(:foo => 200)
883 m.repeated_msg.push tm2
884 assert m.repeated_msg[-1] == tm2
/third_party/protobuf/ruby/tests/
Dcommon_tests.rb666 tm2 = proto_module::TestMessage2.new(:foo => 200)
669 m.repeated_msg.push tm2
670 assert m.repeated_msg[-1] == tm2
/third_party/eudev/hwdb/
D20-pci-vendor-model.hwdb8967 …ID_MODEL_FROM_DATABASE=Park [Mobility Radeon HD 5430/5450/5470] (TouchSmart tm2-2050er discrete GP…