Lines Matching refs:timeptr
64 asctime_r(struct tm const *restrict timeptr, char *restrict buf)
78 if (timeptr == NULL) {
82 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK)
84 else wn = wday_name[timeptr->tm_wday];
85 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR)
87 else mn = mon_name[timeptr->tm_mon];
90 ** when computing timeptr->tm_year + TM_YEAR_BASE.
92 ** (e.g., timeptr->tm_mday) when processing "%Y".
94 strftime(year, sizeof year, "%Y", timeptr);
101 timeptr->tm_mday, timeptr->tm_hour,
102 timeptr->tm_min, timeptr->tm_sec,
114 asctime(register const struct tm *timeptr)
116 return asctime_r(timeptr, buf_asctime);