Lines Matching refs:tm

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