Lines Matching refs:timeptr
66 asctime_r(struct tm const *restrict timeptr, char *restrict buf) in asctime_r() argument
82 if (timeptr == NULL) { in asctime_r()
89 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
91 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
92 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime_r()
94 else mn = mon_name[timeptr->tm_mon]; in asctime_r()
96 year = timeptr->tm_year; in asctime_r()
97 mday = timeptr->tm_mday; in asctime_r()
98 hour = timeptr->tm_hour; in asctime_r()
99 min = timeptr->tm_min; in asctime_r()
100 sec = timeptr->tm_sec; in asctime_r()
137 asctime(register const struct tm *timeptr) in asctime() argument
139 return asctime_r(timeptr, buf_asctime); in asctime()