• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/lib/libc/stdtime/

Lines Matching defs:tm

62 static char * _strptime(const char *, const char *, struct tm *, int *, locale_t);
88 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp,
134 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale);
159 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale);
166 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale);
185 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale);
192 buf = _strptime(buf, "%H:%M", tm, GMTp, locale);
198 buf = _strptime(buf, tptr->ampm_fmt, tm, GMTp, locale);
204 buf = _strptime(buf, "%H:%M:%S", tm, GMTp, locale);
210 buf = _strptime(buf, tptr->X_fmt, tm, GMTp, locale);
216 buf = _strptime(buf, tptr->x_fmt, tm, GMTp, locale);
236 tm->tm_yday = i - 1;
261 tm->tm_min = i;
265 tm->tm_sec = i;
305 tm->tm_hour = i;
314 if (tm->tm_hour > 12)
319 if (tm->tm_hour == 12)
320 tm->tm_hour = 0;
327 if (tm->tm_hour != 12)
328 tm->tm_hour += 12;
351 tm->tm_wday = i;
359 * information present in the tm structure at this
396 tm->tm_wday = i % 7;
433 tm->tm_mday = i;
472 tm->tm_mon = i;
492 tm->tm_mon = i - 1;
513 if (gmtime_r(&t, tm) == NULL)
562 tm->tm_isdst = 0;
564 tm->tm_isdst = 1;
601 tm->tm_hour -= sign * (i / 100);
602 tm->tm_min -= sign * (i % 100);
626 tm->tm_year = year;
632 tm->tm_yday = start_of_month[isleap(tm->tm_year +
633 TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1);
638 fwo = first_wday_of(tm->tm_year + TM_YEAR_BASE);
646 tmpwday = (flags & FLAG_WDAY) ? tm->tm_wday :
657 tm->tm_yday = tmpyday;
665 while (tm->tm_yday >=
666 start_of_month[isleap(tm->tm_year +
671 tm->tm_yday -=
672 start_of_month[isleap(tm->tm_year +
674 tm->tm_year++;
676 tm->tm_mon = i - 1;
680 tm->tm_mday = tm->tm_yday -
681 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)]
682 [tm->tm_mon] + 1;
687 wday_offset = first_wday_of(tm->tm_year);
688 while (i++ <= tm->tm_yday) {
692 tm->tm_wday = wday_offset;
702 struct tm * __restrict tm, locale_t loc)
709 ret = _strptime(buf, fmt, tm, &gmt, loc);
711 time_t t = timegm(tm);
713 localtime_r(&t, tm);
721 struct tm * __restrict tm)
723 return strptime_l(buf, fmt, tm, __get_locale());