Searched refs:timeptr (Results 1 - 6 of 6) sorted by relevance

/freebsd-11-stable/contrib/tzcode/stdtime/
H A Dasctime.c82 asctime_r(timeptr, buf)
83 const struct tm * timeptr;
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];
110 ** when computing timeptr
[all...]
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dstrptime.c185 * Set `timeptr' given `wnum' (week number [0, 53])
189 set_week_number_sun (struct tm *timeptr, int wnum) argument
191 int fday = first_day (timeptr->tm_year + tm_year_base);
193 timeptr->tm_yday = wnum * 7 + timeptr->tm_wday - fday;
194 if (timeptr->tm_yday < 0) {
195 timeptr->tm_wday = fday;
196 timeptr->tm_yday = 0;
201 * Set `timeptr' given `wnum' (week number [0, 53])
205 set_week_number_mon (struct tm *timeptr, in argument
221 set_week_number_mon4(struct tm *timeptr, int wnum) argument
241 strptime(const char *buf, const char *format, struct tm *timeptr) argument
[all...]
H A Dstrpftime-test.h53 strptime (const char *buf, const char *format, struct tm *timeptr);
/freebsd-11-stable/lib/libc/locale/
H A Dwcsftime.c57 const wchar_t * __restrict format, const struct tm * __restrict timeptr,
98 if (strftime_l(dst, maxsize, sformat, timeptr, locale) == 0)
119 const wchar_t * __restrict format, const struct tm * __restrict timeptr)
121 return wcsftime_l(wcs, maxsize, format, timeptr, __get_locale());
56 wcsftime_l(wchar_t * __restrict wcs, size_t maxsize, const wchar_t * __restrict format, const struct tm * __restrict timeptr, locale_t locale) argument
118 wcsftime(wchar_t * __restrict wcs, size_t maxsize, const wchar_t * __restrict format, const struct tm * __restrict timeptr) argument
/freebsd-11-stable/contrib/tzcode/zic/
H A Dzdump.c617 dumptime(timeptr)
618 register const struct tm * timeptr;
632 if (timeptr == NULL) {
641 if (timeptr->tm_wday < 0 || timeptr->tm_wday >=
644 else wn = wday_name[timeptr->tm_wday];
645 if (timeptr->tm_mon < 0 || timeptr->tm_mon >=
648 else mn = mon_name[timeptr->tm_mon];
651 timeptr
[all...]
/freebsd-11-stable/usr.bin/pr/
H A Dpr.c1300 struct tm *timeptr = NULL; local
1326 timeptr = localtime(&tv_sec);
1349 timeptr = localtime(&tv_sec);
1381 timeptr = localtime(&tv_sec);
1391 timeptr = localtime(&(statbuf.st_mtime));
1402 if (strftime(buf, HDBUF, timefrmt, timeptr) <= 0) {

Completed in 132 milliseconds