time_t rawtime;
time ( &rawtime );
tm * ptm = gmtime ( &rawtime );

a questo punto l'anno lo trovi nella variabile ptm -> tm_year