Home
last modified time | relevance | path

Searched refs:timeptr (Results 1 – 20 of 20) sorted by relevance

/third_party/musl/libc-test/src/functionalext/time/
Dstrftime_ext.c42 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()
[all …]
Dmktime.c41 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()
Dtimegm.c42 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()
Dstrptime_ext.c44 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()
Dasctime.c40 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()
Dstrftime_l.c41 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()
Dasctime_r.c53 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()
/third_party/tzdata/
Dasctime.c70 asctime_r(register const struct tm *timeptr, char *buf) in asctime_r() argument
84 if (timeptr == NULL) { in asctime_r()
88 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
90 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
91 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime_r()
93 else mn = mon_name[timeptr->tm_mon]; in asctime_r()
100 strftime(year, sizeof year, "%Y", timeptr); in asctime_r()
107 timeptr->tm_mday, timeptr->tm_hour, in asctime_r()
108 timeptr->tm_min, timeptr->tm_sec, in asctime_r()
119 asctime(register const struct tm *timeptr) in asctime() argument
[all …]
Dzdump.c1070 dumptime(register const struct tm *timeptr) in dumptime() argument
1084 if (timeptr == NULL) { in dumptime()
1093 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= in dumptime()
1096 else wn = wday_name[timeptr->tm_wday]; in dumptime()
1097 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= in dumptime()
1100 else mn = mon_name[timeptr->tm_mon]; in dumptime()
1103 timeptr->tm_mday, timeptr->tm_hour, in dumptime()
1104 timeptr->tm_min, timeptr->tm_sec); in dumptime()
1106 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime()
1107 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + in dumptime()
Dnewstrftime.3.txt10 char const *restrict format, struct tm const *restrict timeptr);
15 The strftime function formats the information from timeptr into the
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
Dasctime.c72 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()
102 (void) strftime(year, sizeof year, "%Y", timeptr); in asctime_r()
109 timeptr->tm_mday, timeptr->tm_hour, in asctime_r()
110 timeptr->tm_min, timeptr->tm_sec, in asctime_r()
129 asctime(register const struct tm *timeptr) in asctime() argument
[all …]
Dzdump.c873 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->tm_hour, in dumptime()
907 timeptr->tm_min, timeptr->tm_sec); in dumptime()
909 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime()
910 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + in dumptime()
/third_party/icu/icu4c/source/tools/tzcode/
Dasctime.c72 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()
102 (void) strftime(year, sizeof year, "%Y", timeptr); in asctime_r()
109 timeptr->tm_mday, timeptr->tm_hour, in asctime_r()
110 timeptr->tm_min, timeptr->tm_sec, in asctime_r()
129 asctime(register const struct tm *timeptr) in asctime() argument
[all …]
Dzdump.c873 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->tm_hour, in dumptime()
907 timeptr->tm_min, timeptr->tm_sec); in dumptime()
909 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime()
910 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + in dumptime()
/third_party/flutter/skia/third_party/externals/icu/source/tools/tzcode/
Dasctime.c72 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()
102 (void) strftime(year, sizeof year, "%Y", timeptr); in asctime_r()
109 timeptr->tm_mday, timeptr->tm_hour, in asctime_r()
110 timeptr->tm_min, timeptr->tm_sec, in asctime_r()
129 asctime(register const struct tm *timeptr) in asctime() argument
[all …]
Dzdump.c873 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->tm_hour, in dumptime()
907 timeptr->tm_min, timeptr->tm_sec); in dumptime()
909 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime()
910 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + in dumptime()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/localtime/
D1-1.c20 struct tm *timeptr; in main() local
23 timeptr = NULL; in main()
24 timeptr = localtime(&current_time); in main()
26 if (timeptr != NULL) { in main()
/third_party/musl/libc-test/src/functionalext/supplement/time/
Dmktime_sup.c489 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/
Dtimemodule.c917 _asctime(struct tm *timeptr) argument
930 wday_name[timeptr->tm_wday],
931 mon_name[timeptr->tm_mon],
932 timeptr->tm_mday, timeptr->tm_hour,
933 timeptr->tm_min, timeptr->tm_sec,
934 1900 + timeptr->tm_year);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DTargetLibraryInfo.def1021 /// time_t mktime(struct tm *timeptr);