`partial_year, month, day = /^...(\d\d)(\d\d)(\d\d)\./.match(filename)[1]` does not actually set month or day variables.