Lines Matching full:tm
53 static char * _strptime(const char *, const char *, struct tm *, int *, locale_t);
78 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp,
124 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale);
149 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale);
156 buf = _strptime(buf, "%m/%d/%y", tm, GMTp, locale);
175 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp, locale);
182 buf = _strptime(buf, "%H:%M", tm, GMTp, locale);
188 buf = _strptime(buf, tptr->ampm_fmt, tm, GMTp, locale);
194 buf = _strptime(buf, "%H:%M:%S", tm, GMTp, locale);
200 buf = _strptime(buf, tptr->X_fmt, tm, GMTp, locale);
206 buf = _strptime(buf, tptr->x_fmt, tm, GMTp, locale);
226 tm->tm_yday = i - 1;
251 tm->tm_min = i;
255 tm->tm_sec = i;
295 tm->tm_hour = i;
304 if (tm->tm_hour > 12)
309 if (tm->tm_hour == 12)
310 tm->tm_hour = 0;
317 if (tm->tm_hour != 12)
318 tm->tm_hour += 12;
341 tm->tm_wday = i;
349 * information present in the tm structure at this
386 tm->tm_wday = i % 7;
423 tm->tm_mday = i;
462 tm->tm_mon = i;
482 tm->tm_mon = i - 1;
503 if (gmtime_r(&t, tm) == NULL)
552 tm->tm_isdst = 0;
554 tm->tm_isdst = 1;
591 tm->tm_hour -= sign * (i / 100);
592 tm->tm_min -= sign * (i % 100);
616 tm->tm_year = year;
622 tm->tm_yday = start_of_month[isleap(tm->tm_year +
623 TM_YEAR_BASE)][tm->tm_mon] + (tm->tm_mday - 1);
628 fwo = first_wday_of(tm->tm_year + TM_YEAR_BASE);
636 tmpwday = (flags & FLAG_WDAY) ? tm->tm_wday :
647 tm->tm_yday = tmpyday;
655 while (tm->tm_yday >=
656 start_of_month[isleap(tm->tm_year +
661 tm->tm_yday -=
662 start_of_month[isleap(tm->tm_year +
664 tm->tm_year++;
666 tm->tm_mon = i - 1;
670 tm->tm_mday = tm->tm_yday -
671 start_of_month[isleap(tm->tm_year + TM_YEAR_BASE)]
672 [tm->tm_mon] + 1;
676 wday_offset = first_wday_of(tm->tm_year + TM_YEAR_BASE);
677 tm->tm_wday = (wday_offset + tm->tm_yday) % 7;
687 struct tm * __restrict tm, locale_t loc)
694 ret = _strptime(buf, fmt, tm, &gmt, loc);
696 time_t t = timegm(tm);
698 localtime_r(&t, tm);
706 struct tm * __restrict tm)
708 return strptime_l(buf, fmt, tm, __get_locale());