Lines Matching refs:cr
106 struct century_relyear cr; in strptime() local
107 cr.century = TM_YEAR_BASE; in strptime()
108 cr.relyear = -1; in strptime()
109 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr)); in strptime()
113 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) in _strptime() argument
165 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, cr))) in _strptime()
171 if (!(bp = _strptime(bp, "%m/%d/%y", tm, cr))) in _strptime()
177 if (!(bp = _strptime(bp, "%Y-%m-%d", tm, cr))) in _strptime()
183 if (!(bp = _strptime(bp, "%H:%M", tm, cr))) in _strptime()
189 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, cr))) in _strptime()
195 if (!(bp = _strptime(bp, "%H:%M:%S", tm, cr))) in _strptime()
201 if (!(bp = _strptime(bp, "%e-%b-%Y", tm, cr))) in _strptime()
207 if (!(bp = _strptime(bp, _ctloc(t_fmt), tm, cr))) in _strptime()
213 if (!(bp = _strptime(bp, _ctloc(d_fmt), tm, cr))) in _strptime()
272 cr->century = i * 100; in _strptime()
425 cr->relyear = -1; in _strptime()
431 if (!(_conv_num(&bp, &cr->relyear, 0, 99))) in _strptime()
457 if (cr->relyear != -1) { in _strptime()
458 if (cr->century == TM_YEAR_BASE) { in _strptime()
459 if (cr->relyear <= 68) in _strptime()
460 tm->tm_year = cr->relyear + 2000 - TM_YEAR_BASE; in _strptime()
462 tm->tm_year = cr->relyear + 1900 - TM_YEAR_BASE; in _strptime()
464 tm->tm_year = cr->relyear + cr->century - TM_YEAR_BASE; in _strptime()