use Time::localtime; printf "Year is %d\n", localtime->year() + 1900;