time_t timer;

struct tm t;


timer = time(NULL);

localtime_s(&t, &timer);


int year2 = t.tm_year + 1900;


하면 년도가 나오지않습니까??


그런데 제가 년도를 2016이아닌 16으로 저장을 하고싶은데 어떻게해야할까요 ㅠㅠ