Interpret year number 00-59 as 2000--2059.

This commit is contained in:
Ulrich Drepper 1997-04-17 23:30:22 +00:00
parent f9652c80ae
commit b7c5a468dc

View File

@ -537,7 +537,7 @@ strptime_internal (buf, format, tm, decided)
case 'y':
/* Match year within century. */
get_number (0, 99);
tm->tm_year = val;
tm->tm_year = val >= 50 ? val : val + 100;
break;
case 'Y':
/* Match year including century number. */