include<stdio.h> include<time.h> int main(void) { time_t curTime = time(NULL); struct tm tmCurTime; errno_t error; error = localtime_s(&tmCurTime, &curTime); if (error != 0) { printf("현재 시간을 얻을 수 없다.\n"); } }