Lines Matching refs:tm

55     struct tm *_RESTRICT_KYWD tm, int *_RESTRICT_KYWD flagsp,  in __strptime()  argument
96 buf = __strptime(buf, tptr->date_fmt, tm, flagsp, loc); in __strptime()
115 tm->tm_year = i * 100 - 1900; in __strptime()
119 buf = __strptime(buf, tptr->c_fmt, tm, flagsp, loc); in __strptime()
125 buf = __strptime(buf, "%m/%d/%y", tm, flagsp, loc); in __strptime()
143 buf = __strptime(buf, "%Y-%m-%d", tm, flagsp, loc); in __strptime()
149 buf = __strptime(buf, "%H:%M", tm, flagsp, loc); in __strptime()
155 buf = __strptime(buf, tptr->ampm_fmt, tm, flagsp, loc); in __strptime()
161 buf = __strptime(buf, "%H:%M:%S", tm, flagsp, loc); in __strptime()
167 buf = __strptime(buf, tptr->X_fmt, tm, flagsp, loc); in __strptime()
173 buf = __strptime(buf, tptr->x_fmt, tm, flagsp, loc); in __strptime()
191 tm->tm_yday = i - 1; in __strptime()
212 tm->tm_min = i; in __strptime()
216 tm->tm_sec = i; in __strptime()
248 tm->tm_hour = i; in __strptime()
259 if (tm->tm_hour > 12) in __strptime()
261 if (tm->tm_hour == 12) in __strptime()
262 tm->tm_hour = 0; in __strptime()
269 if (tm->tm_hour > 12) in __strptime()
271 if (tm->tm_hour != 12) in __strptime()
272 tm->tm_hour += 12; in __strptime()
293 tm->tm_wday = i; in __strptime()
327 tm->tm_wday = i; in __strptime()
359 tm->tm_mday = i; in __strptime()
386 tm->tm_mon = i; in __strptime()
403 tm->tm_mon = i - 1; in __strptime()
422 (void) gmtime_r(&t, tm); in __strptime()
448 tm->tm_year = i; in __strptime()
467 tm->tm_isdst = 0; in __strptime()
469 tm->tm_isdst = 1; in __strptime()
498 tm->tm_hour -= sign * (i / 100); in __strptime()
499 tm->tm_min -= sign * (i % 100); in __strptime()
513 time_t t = timegm(tm); in __strptime()
514 (void) localtime_r(&t, tm); in __strptime()
523 struct tm *_RESTRICT_KYWD tm) in strptime() argument
527 (void) memset(tm, 0, sizeof (*tm)); in strptime()
529 return (__strptime(buf, fmt, tm, &flags, uselocale(NULL))); in strptime()
538 const char *_RESTRICT_KYWD fmt, struct tm *_RESTRICT_KYWD tm) in __strptime_dontzero() argument
542 return (__strptime(buf, fmt, tm, &flags, uselocale(NULL))); in __strptime_dontzero()
557 struct tm *_RESTRICT_KYWD tm, locale_t loc) in strptime_l() argument
561 (void) memset(tm, 0, sizeof (*tm)); in strptime_l()
563 return (__strptime(buf, fmt, tm, &flags, loc)); in strptime_l()