Lines Matching full:tm
103 /** Converts the character string s to values which are stored in tm
107 unbound_strptime(const char *s, const char *format, struct tm *tm) in unbound_strptime() argument
139 tm->tm_wday = ret; in unbound_strptime()
150 tm->tm_mon = ret; in unbound_strptime()
153 if (!(s = unbound_strptime(s, "%x %X", tm))) { in unbound_strptime()
164 tm->tm_year = ret*100 + (tm->tm_year%100); in unbound_strptime()
167 tm->tm_year = ret*100 - TM_YEAR_BASE; in unbound_strptime()
177 tm->tm_mday = ret; in unbound_strptime()
180 if (!(s = unbound_strptime(s, "%m/%d/%y", tm))) { in unbound_strptime()
189 tm->tm_hour = ret; in unbound_strptime()
198 tm->tm_hour = ret; in unbound_strptime()
205 tm->tm_yday = ret; in unbound_strptime()
213 tm->tm_mon = (ret-1); in unbound_strptime()
220 tm->tm_min = ret; in unbound_strptime()
232 if (tm->tm_hour < 0 || tm->tm_hour > 11) { /* %I */ in unbound_strptime()
237 tm->tm_hour += 12; in unbound_strptime()
240 if (!(s = unbound_strptime(s, "%I:%M:%S %p", tm))) { in unbound_strptime()
245 if (!(s = unbound_strptime(s, "%H:%M", tm))) { in unbound_strptime()
256 tm->tm_sec = ret; in unbound_strptime()
259 if (!(s = unbound_strptime(s, "%H:%M:%S", tm))) { in unbound_strptime()
277 tm->tm_wday = ret; in unbound_strptime()
289 if (!(s = unbound_strptime(s, "%m/%d/%y", tm))) { in unbound_strptime()
294 if (!(s = unbound_strptime(s, "%H:%M:%S", tm))) { in unbound_strptime()
304 tm->tm_year = ((tm->tm_year/100) * 100) + ret; in unbound_strptime()
315 tm->tm_year = ret; in unbound_strptime()
323 tm->tm_year = ret - TM_YEAR_BASE; in unbound_strptime()