The tm_year part of the struct gives you the number of years since 1900. Therefore 2002-1900=102. To fix it, simply subtract 100.
For your info, here's what I have on the rest of the tm struct:
Code:
int tm_sec
seconds after the minute, in the range [0,61], allowing for leap seconds
int tm_min
minutes after the hour, in the range [0,59]
int tm_hour
hours after midnight, in the range [0,23]
int tm_mday
day of the month, in the range [1,31]
int tm_mon
months since January, in the range [0,11]
int tm_year
years since 1900
int tm_wday
days since Sunday, in the range [0,6]
int tm_yday
days since January 1, in the range [0,365], allowing for leap years
int tm_isdst
Daylight Savings Time flag