Changed function getYear()

Name is now setYear(). Changed variable name to match convention and
reduce the number of lines.