/third_party/musl/libc-test/src/functionalext/time/ |
H A D | strftime_ext.c | 42 struct tm *timeptr = localtime(&gTime); in strftime_0100() local 43 if (!timeptr) { in strftime_0100() 44 EXPECT_PTRNE("strftime_0100", timeptr, NULL); in strftime_0100() 47 size_t count = strftime(buffer, sizeof(buffer) - 1, "%c", timeptr); in strftime_0100() 69 struct tm *timeptr = localtime(&gTime); in strftime_0200() local 70 if (!timeptr) { in strftime_0200() 71 EXPECT_PTRNE("strftime_0200", timeptr, NULL); in strftime_0200() 75 size_t count = strftime(buffer, sizeof(buffer) - 1, "%c %Z%z", timeptr); in strftime_0200() 96 struct tm *timeptr = localtime(&gTime); in strftime_0300() local 97 if (!timeptr) { in strftime_0300() 122 struct tm *timeptr = localtime(&gTime); strftime_0400() local 148 struct tm *timeptr = localtime(&gTime); strftime_0500() local 174 struct tm *timeptr = localtime(&gTime); strftime_0600() local 200 struct tm *timeptr = localtime(&gTime); strftime_0700() local 226 struct tm *timeptr = localtime(&gTime); strftime_0800() local 252 struct tm *timeptr = localtime(&gTime); strftime_0900() local 278 struct tm *timeptr = localtime(&gTime); strftime_1000() local 324 struct tm *timeptr = localtime(&gTime); strftime_1200() local 356 struct tm *timeptr = localtime(&gTime); strftime_1300() local 388 struct tm *timeptr = localtime(&gTime); strftime_1400() local 420 struct tm *timeptr = localtime(&gTime); strftime_1500() local 447 struct tm *timeptr = localtime(&gTime); strftime_1600() local [all...] |
H A D | mktime.c | 41 struct tm *timeptr = localtime(&gTime); in mktime_0100() local 42 if (!timeptr) { in mktime_0100() 43 EXPECT_PTRNE("mktime_0100", timeptr, NULL); in mktime_0100() 46 time_t mk = mktime(timeptr); in mktime_0100() 67 struct tm *timeptr = localtime(&gTime); in mktime64_0100() local 68 if (!timeptr) { in mktime64_0100() 69 EXPECT_PTRNE("mktime64_0100", timeptr, NULL); in mktime64_0100() 72 time_t mk = __mktime64(timeptr); in mktime64_0100()
|
H A D | timegm.c | 42 struct tm *timeptr = localtime(&gTime); in timegm_0100() local 43 if (!timeptr) { in timegm_0100() 44 EXPECT_PTRNE("timegm_0100", timeptr, NULL); in timegm_0100() 47 timeThis = timegm(timeptr); in timegm_0100() 69 struct tm *timeptr = localtime(&gTime); in timegm_time64_0100() local 70 if (!timeptr) { in timegm_time64_0100() 71 EXPECT_PTRNE("timegm_time64_0100", timeptr, NULL); in timegm_time64_0100() 74 timeThis = __timegm_time64(timeptr); in timegm_time64_0100()
|
H A D | strptime_ext.c | 44 struct tm *timeptr = localtime(&gTime); in strptime_0100() local 45 if (!timeptr) { in strptime_0100() 46 EXPECT_PTRNE("strptime_0100", timeptr, NULL); in strptime_0100() 49 size_t cnt = strftime(buffer, sizeof(buffer) - 1, "%c", timeptr); in strptime_0100() 82 struct tm *timeptr = localtime(&gTime); in strptime_0200() local 83 if (!timeptr) { in strptime_0200() 84 EXPECT_TRUE("strptime_0200", timeptr == NULL); in strptime_0200() 87 size_t len = strftime(buffer, sizeof(buffer) - 1, "%c %Z%z", timeptr); in strptime_0200() 283 struct tm *timeptr = localtime(&gTime); in strptime_1200() local 284 if (!timeptr) { in strptime_1200() 312 struct tm *timeptr = localtime(&gTime); strptime_1300() local [all...] |
H A D | asctime_r.c | 53 struct tm *timeptr = localtime(&gTime); in asctime_r_0100() local 54 if (!timeptr) { in asctime_r_0100() 55 EXPECT_PTRNE("asctime_r_0100", timeptr, NULL); in asctime_r_0100() 59 char *returnStr = asctime_r(timeptr, s); in asctime_r_0100()
|
H A D | asctime.c | 40 struct tm *timeptr = localtime(&gTime); in asctime_0100() local 41 if (!timeptr) { in asctime_0100() 42 EXPECT_PTRNE("asctime_0100", timeptr, NULL); in asctime_0100() 45 char *returnStr = asctime(timeptr); in asctime_0100()
|
H A D | strftime_l.c | 41 struct tm *timeptr = localtime(&gTime); in strftime_l_0100() local 42 if (!timeptr) { in strftime_l_0100() 43 EXPECT_PTRNE("strftime_l_0100", timeptr, NULL); in strftime_l_0100() 48 strftime_l(buffer, sizeof(buffer) - 1, "%c", timeptr, m_locale); in strftime_l_0100()
|
/third_party/icu/icu4c/source/tools/tzcode/ |
H A D | asctime.c | 72 asctime_r(register const struct tm *timeptr, char *buf) in asctime_r() argument 86 if (timeptr == NULL) { in asctime_r() 90 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r() 92 else wn = wday_name[timeptr->tm_wday]; in asctime_r() 93 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime_r() 95 else mn = mon_name[timeptr->tm_mon]; in asctime_r() 98 ** when computing timeptr->tm_year + TM_YEAR_BASE. in asctime_r() 100 ** (e.g., timeptr in asctime_r() 129 asctime(register const struct tm *timeptr) asctime() argument [all...] |
H A D | zdump.c | 867 dumptime(register const struct tm *timeptr) in dumptime() argument 881 if (timeptr == NULL) { in dumptime() 890 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= in dumptime() 893 else wn = wday_name[timeptr->tm_wday]; in dumptime() 894 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= in dumptime() 897 else mn = mon_name[timeptr->tm_mon]; in dumptime() 900 timeptr->tm_mday, timeptr in dumptime() [all...] |
/third_party/skia/third_party/externals/icu/source/tools/tzcode/ |
H A D | asctime.c | 72 asctime_r(register const struct tm *timeptr, char *buf) in asctime_r() argument 86 if (timeptr == NULL) { in asctime_r() 90 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r() 92 else wn = wday_name[timeptr->tm_wday]; in asctime_r() 93 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime_r() 95 else mn = mon_name[timeptr->tm_mon]; in asctime_r() 98 ** when computing timeptr->tm_year + TM_YEAR_BASE. in asctime_r() 100 ** (e.g., timeptr in asctime_r() 129 asctime(register const struct tm *timeptr) asctime() argument [all...] |
H A D | zdump.c | 873 dumptime(register const struct tm *timeptr) in dumptime() argument 887 if (timeptr == NULL) { in dumptime() 896 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= in dumptime() 899 else wn = wday_name[timeptr->tm_wday]; in dumptime() 900 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= in dumptime() 903 else mn = mon_name[timeptr->tm_mon]; in dumptime() 906 timeptr->tm_mday, timeptr in dumptime() [all...] |
/third_party/tzdata/ |
H A D | asctime.c | 64 asctime_r(struct tm const *restrict timeptr, char *restrict buf) in asctime_r() argument 78 if (timeptr == NULL) { in asctime_r() 82 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r() 84 else wn = wday_name[timeptr->tm_wday]; in asctime_r() 85 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime_r() 87 else mn = mon_name[timeptr->tm_mon]; in asctime_r() 90 ** when computing timeptr->tm_year + TM_YEAR_BASE. in asctime_r() 92 ** (e.g., timeptr in asctime_r() 114 asctime(register const struct tm *timeptr) asctime() argument [all...] |
H A D | zdump.c | 1226 dumptime(register const struct tm *timeptr) in dumptime() argument 1245 ((0 <= timeptr->tm_wday in dumptime() 1246 && timeptr->tm_wday < sizeof wday_name / sizeof wday_name[0]) in dumptime() 1247 ? wday_name[timeptr->tm_wday] : "???"), in dumptime() 1248 ((0 <= timeptr->tm_mon in dumptime() 1249 && timeptr->tm_mon < sizeof mon_name / sizeof mon_name[0]) in dumptime() 1250 ? mon_name[timeptr->tm_mon] : "???"), in dumptime() 1251 timeptr->tm_mday, timeptr->tm_hour, in dumptime() 1252 timeptr in dumptime() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/localtime/ |
H A D | 1-1.c | 20 struct tm *timeptr; in main() local 23 timeptr = NULL; in main() 24 timeptr = localtime(¤t_time); in main() 26 if (timeptr != NULL) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | mktime_sup.c | 489 struct tm *timeptr = localtime(&gTime); in mktime_0100() local 490 if (!timeptr) { in mktime_0100() 491 EXPECT_PTRNE("mktime_0100", timeptr, NULL); in mktime_0100() 494 time_t mk = mktime(timeptr); in mktime_0100()
|
/third_party/python/Modules/ |
H A D | timemodule.c | 940 _asctime(struct tm *timeptr) argument 953 wday_name[timeptr->tm_wday], 954 mon_name[timeptr->tm_mon], 955 timeptr->tm_mday, timeptr->tm_hour, 956 timeptr->tm_min, timeptr->tm_sec, 957 1900 + timeptr->tm_year);
|