Lines Matching refs:cr
119 struct century_relyear cr; in strptime() local
120 cr.century = TM_YEAR_BASE; in strptime()
121 cr.relyear = -1; in strptime()
122 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr)); in strptime()
126 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) in _strptime() argument
179 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, cr))) in _strptime()
185 if (!(bp = _strptime(bp, "%m/%d/%y", tm, cr))) in _strptime()
191 if (!(bp = _strptime(bp, "%Y-%m-%d", tm, cr))) in _strptime()
197 if (!(bp = _strptime(bp, "%H:%M", tm, cr))) in _strptime()
203 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, cr))) in _strptime()
209 if (!(bp = _strptime(bp, "%H:%M:%S", tm, cr))) in _strptime()
215 if (!(bp = _strptime(bp, "%e-%b-%Y", tm, cr))) in _strptime()
221 if (!(bp = _strptime(bp, _ctloc(t_fmt), tm, cr))) in _strptime()
227 if (!(bp = _strptime(bp, _ctloc(d_fmt), tm, cr))) in _strptime()
286 cr->century = i * 100; in _strptime()
439 cr->relyear = -1; in _strptime()
445 if (!(_conv_num(&bp, &cr->relyear, 0, 99))) in _strptime()
573 if (cr->relyear != -1) { in _strptime()
574 if (cr->century == TM_YEAR_BASE) { in _strptime()
575 if (cr->relyear <= 68) in _strptime()
576 tm->tm_year = cr->relyear + 2000 - TM_YEAR_BASE; in _strptime()
578 tm->tm_year = cr->relyear + 1900 - TM_YEAR_BASE; in _strptime()
580 tm->tm_year = cr->relyear + cr->century - TM_YEAR_BASE; in _strptime()