Home
last modified time | relevance | path

Searched refs:tm_ptr (Results 1 – 11 of 11) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/gmtime/
D1-1.c19 struct tm *tm_ptr; in main() local
24 tm_ptr = gmtime(&the_time); in main()
29 if ((tm_ptr->tm_sec >= 0) && (tm_ptr->tm_sec < 60)) { in main()
30 printf("sec %02d\n", tm_ptr->tm_sec); in main()
37 if ((tm_ptr->tm_min >= 0) && (tm_ptr->tm_min <= 59)) { in main()
38 printf("min %02d\n", tm_ptr->tm_min); in main()
45 if ((tm_ptr->tm_hour >= 0) && (tm_ptr->tm_hour <= 23)) { in main()
46 printf("hour %02d\n", tm_ptr->tm_hour); in main()
53 if ((tm_ptr->tm_mday >= 1) && (tm_ptr->tm_mday <= 31)) { in main()
54 printf("mday %02d\n", tm_ptr->tm_mday); in main()
[all …]
D2-1.c19 struct tm *tm_ptr; in main() local
23 tm_ptr = NULL; in main()
24 tm_ptr = gmtime(&the_time); in main()
26 if (tm_ptr != NULL) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mktime/
D1-1.c18 struct tm tm_ptr; variable
24 tm_ptr.tm_year = 2001 - 1900; in main()
25 tm_ptr.tm_mon = 7 - 1; in main()
26 tm_ptr.tm_mday = 4; in main()
27 tm_ptr.tm_hour = 0; in main()
28 tm_ptr.tm_min = 0; in main()
29 tm_ptr.tm_sec = 1; in main()
30 tm_ptr.tm_isdst = -1; in main()
32 tps = mktime(&tm_ptr); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/strftime/
D3-1.c19 struct tm *tm_ptr; in main() local
25 tm_ptr = localtime(&the_time); in main()
26 result = strftime(buf, sizeof(buf), "%A %d %B, %I:%S %p", tm_ptr); in main()
/external/llvm-project/llvm/utils/unittest/googletest/src/
Dgtest.cc3562 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()
3563 if (tm_ptr == NULL) in PortableLocaltime()
3565 *out = *tm_ptr; in PortableLocaltime()
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest.cc3626 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()
3627 if (tm_ptr == NULL) in PortableLocaltime()
3629 *out = *tm_ptr; in PortableLocaltime()
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/src/
Dgtest.cc3683 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()
3684 if (tm_ptr == nullptr) return false; in PortableLocaltime()
3685 *out = *tm_ptr; in PortableLocaltime()
/external/mesa3d/src/gtest/src/
Dgtest.cc3721 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()
3722 if (tm_ptr == nullptr) return false; in PortableLocaltime()
3723 *out = *tm_ptr; in PortableLocaltime()
/external/googletest/googletest/src/
Dgtest.cc4095 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()
4096 if (tm_ptr == nullptr) return false; in PortableLocaltime()
4097 *out = *tm_ptr; in PortableLocaltime()
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest.cc3798 struct tm *tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()
3799 if (tm_ptr == nullptr) return false; in PortableLocaltime()
3800 *out = *tm_ptr; in PortableLocaltime()
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/test/gmock-1.8.0/
Dgmock-gtest-all.cc5010 struct tm* tm_ptr = localtime(&seconds); // NOLINT in PortableLocaltime()
5011 if (tm_ptr == NULL) in PortableLocaltime()
5013 *out = *tm_ptr; in PortableLocaltime()