Lines Matching refs:timeptr
85 asctime_r(struct tm const *restrict timeptr, char *restrict buf)
99 if (timeptr == NULL) {
103 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK)
105 else wn = wday_name[timeptr->tm_wday];
106 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR)
108 else mn = mon_name[timeptr->tm_mon];
111 ** when computing timeptr->tm_year + TM_YEAR_BASE.
113 ** (e.g., timeptr->tm_mday) when processing "%Y".
115 (void) strftime(year, sizeof year, "%Y", timeptr);
120 timeptr->tm_mday, timeptr->tm_hour,
121 timeptr->tm_min, timeptr->tm_sec,
133 asctime(const struct tm *timeptr)
135 return asctime_r(timeptr, buf_asctime);