Lines Matching refs:timeptr
82 asctime_r(timeptr, buf) in asctime_r() argument
83 const struct tm * timeptr; in asctime_r()
98 if (timeptr == NULL) {
102 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK)
104 else wn = wday_name[timeptr->tm_wday];
105 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR)
107 else mn = mon_name[timeptr->tm_mon];
114 (void) strftime(year, sizeof year, "%Y", timeptr);
121 timeptr->tm_mday, timeptr->tm_hour,
122 timeptr->tm_min, timeptr->tm_sec,
141 asctime(timeptr) in asctime() argument
142 const struct tm * timeptr; in asctime()
144 return asctime_r(timeptr, buf_asctime);