Home
last modified time | relevance | path

Searched refs:timeptr (Results 1 – 4 of 4) sorted by relevance

/dflybsd-src/lib/libc/stdtime/
H A Dasctime.c75 asctime_r(const struct tm * __restrict timeptr, char * __restrict buf) in asctime_r() argument
89 if (timeptr == NULL) { in asctime_r()
93 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
95 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
96 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime_r()
98 else mn = mon_name[timeptr->tm_mon]; in asctime_r()
105 strftime(year, sizeof year, "%Y", timeptr); in asctime_r()
109 timeptr->tm_mday, timeptr->tm_hour, in asctime_r()
110 timeptr->tm_min, timeptr->tm_sec, in asctime_r()
125 asctime(const struct tm *timeptr) in asctime() argument
[all …]
/dflybsd-src/usr.sbin/zic/
H A Dzdump.c572 dumptime(const struct tm *timeptr) in dumptime() argument
586 if (timeptr == NULL) { in dumptime()
595 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= in dumptime()
598 else wn = wday_name[timeptr->tm_wday]; in dumptime()
599 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= in dumptime()
602 else mn = mon_name[timeptr->tm_mon]; in dumptime()
605 timeptr->tm_mday, timeptr->tm_hour, in dumptime()
606 timeptr->tm_min, timeptr->tm_sec); in dumptime()
608 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime()
609 lead = timeptr->tm_year / DIVISOR + TM_YEAR_BASE / DIVISOR + in dumptime()
/dflybsd-src/lib/libc/locale/
H A Dwcsftime.c57 const wchar_t * __restrict format, const struct tm * __restrict timeptr, in wcsftime_l() argument
98 if (strftime_l(dst, maxsize, sformat, timeptr, locale) == 0) in wcsftime_l()
119 const wchar_t * __restrict format, const struct tm * __restrict timeptr) in wcsftime() argument
121 return wcsftime_l(wcs, maxsize, format, timeptr, __get_locale()); in wcsftime()
/dflybsd-src/usr.bin/pr/
H A Dpr.c1257 struct tm *timeptr = NULL; in nxtfile() local
1284 timeptr = localtime(&tv_sec); in nxtfile()
1308 timeptr = localtime(&tv_sec); in nxtfile()
1340 timeptr = localtime(&tv_sec); in nxtfile()
1350 timeptr = localtime(&(statbuf.st_mtime)); in nxtfile()
1361 if (strftime(buf, HDBUF, timefrmt, timeptr) <= 0) { in nxtfile()