Lines Matching refs:tm
10 char *strptime(const char *restrict s, const char *restrict f, struct tm *restrict tm)
36 dest = &tm->tm_wday;
48 dest = &tm->tm_mon;
57 s = strptime(s, nl_langinfo(D_T_FMT), tm);
66 dest = &tm->tm_mday;
71 s = strptime(s, "%m/%d/%y", tm);
75 dest = &tm->tm_hour;
80 dest = &tm->tm_hour;
85 dest = &tm->tm_yday;
91 dest = &tm->tm_mon;
97 dest = &tm->tm_min;
108 tm->tm_hour %= 12;
115 tm->tm_hour %= 12;
116 tm->tm_hour += 12;
122 s = strptime(s, nl_langinfo(T_FMT_AMPM), tm);
126 s = strptime(s, "%H:%M", tm);
130 dest = &tm->tm_sec;
135 s = strptime(s, "%H:%M:%S", tm);
146 dest = &tm->tm_wday;
151 s = strptime(s, nl_langinfo(D_FMT), tm);
155 s = strptime(s, nl_langinfo(T_FMT), tm);
164 dest = &tm->tm_year;
181 switch((char *)dest - (char *)tm) {
182 case offsetof(struct tm, tm_yday):
217 tm->tm_year = relyear;
218 if (want_century & 2) tm->tm_year += century * 100 - 1900;
219 else if (tm->tm_year <= 68) tm->tm_year += 100;