localtime_s

정경섭·2023년 8월 16일
0
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");
        }
 }
profile
Keep Building

0개의 댓글