I need to parse strings representing 6-digit dates in the format yymmdd where yy ranges from 59 to 05 (1959 to 2005). According to the time module
yymmdd
yy
Prepend the century to your date using your own pivot:
year = int(date[0:2]) if 59 <= year <= 99: date = '19' + date else date = '20' + date
and then use strptime with the %Y directive instead of %y.
strptime
%Y
%y