Home
last modified time | relevance | path

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

/freebsd/crypto/heimdal/lib/roken/
H A Dstrptime.c189 set_week_number_sun (struct tm *timeptr, int wnum) in set_week_number_sun() argument
191 int fday = first_day (timeptr->tm_year + tm_year_base); in set_week_number_sun()
193 timeptr->tm_yday = wnum * 7 + timeptr->tm_wday - fday; in set_week_number_sun()
194 if (timeptr->tm_yday < 0) { in set_week_number_sun()
195 timeptr->tm_wday = fday; in set_week_number_sun()
196 timeptr->tm_yday = 0; in set_week_number_sun()
205 set_week_number_mon (struct tm *timeptr, int wnum) in set_week_number_mon() argument
207 int fday = (first_day (timeptr->tm_year + tm_year_base) + 6) % 7; in set_week_number_mon()
209 timeptr->tm_yday = wnum * 7 + (timeptr->tm_wday + 6) % 7 - fday; in set_week_number_mon()
210 if (timeptr->tm_yday < 0) { in set_week_number_mon()
[all …]
H A Dstrpftime-test.h53 strptime (const char *buf, const char *format, struct tm *timeptr);
/freebsd/contrib/tzcode/
H A Dasctime.c66 asctime_r(struct tm const *restrict timeptr, char *restrict buf) in asctime_r() argument
82 if (timeptr == NULL) { in asctime_r()
89 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime_r()
91 else wn = wday_name[timeptr->tm_wday]; in asctime_r()
92 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime_r()
94 else mn = mon_name[timeptr->tm_mon]; in asctime_r()
96 year = timeptr->tm_year; in asctime_r()
97 mday = timeptr->tm_mday; in asctime_r()
98 hour = timeptr->tm_hour; in asctime_r()
99 min = timeptr->tm_min; in asctime_r()
[all …]
H A Dzdump.c1218 dumptime(register const struct tm *timeptr) in dumptime() argument
1237 ((0 <= timeptr->tm_wday in dumptime()
1238 && timeptr->tm_wday < (int)(sizeof wday_name / sizeof wday_name[0])) in dumptime()
1239 ? wday_name[timeptr->tm_wday] : "???"), in dumptime()
1240 ((0 <= timeptr->tm_mon in dumptime()
1241 && timeptr->tm_mon < (int)(sizeof mon_name / sizeof mon_name[0])) in dumptime()
1242 ? mon_name[timeptr->tm_mon] : "???"), in dumptime()
1243 timeptr->tm_mday, timeptr->tm_hour, in dumptime()
1244 timeptr->tm_min, timeptr->tm_sec); in dumptime()
1245 trail = timeptr->tm_year % DIVISOR + TM_YEAR_BASE % DIVISOR; in dumptime()
[all …]
/freebsd/lib/libc/locale/
H A Dwcsftime.c56 const wchar_t * __restrict format, const struct tm * __restrict timeptr, in wcsftime_l() argument
97 if (strftime_l(dst, maxsize, sformat, timeptr, locale) == 0) in wcsftime_l()
118 const wchar_t * __restrict format, const struct tm * __restrict timeptr) in wcsftime() argument
120 return wcsftime_l(wcs, maxsize, format, timeptr, __get_locale()); in wcsftime()
/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dc_ustime.c49 struct _timeb timeptr; in get_time_now() local
50 _ftime(&timeptr); in get_time_now()
51 n->sec = timeptr.time; in get_time_now()
52 n->usec = timeptr.millitm * 1000; in get_time_now()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dctime35 time_t mktime(tm* timeptr);
37 char* asctime(const tm* timeptr);
42 const tm* restrict timeptr);
H A Dcwchar89 const tm* restrict timeptr);
/freebsd/usr.bin/pr/
H A Dpr.c1287 struct tm *timeptr = NULL; in nxtfile() local
1313 timeptr = localtime(&tv_sec); in nxtfile()
1336 timeptr = localtime(&tv_sec); in nxtfile()
1368 timeptr = localtime(&tv_sec); in nxtfile()
1378 timeptr = localtime(&(statbuf.st_mtime)); in nxtfile()
1389 if (strftime(buf, HDBUF, timefrmt, timeptr) <= 0) { in nxtfile()
/freebsd/contrib/tcpdump/
H A Dutil-print.c425 const struct tm *timeptr) in nd_format_time() argument
427 if (timeptr != NULL) { in nd_format_time()
428 if (strftime(buf, bufsize, format, timeptr) != 0) in nd_format_time()
H A Dnetdissect.h438 const char *format, const struct tm *timeptr);
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.def1775 /// time_t mktime(struct tm *timeptr);