C
[C] 175 날짜 및 시간을 영문으로 변환 asctime()
qkrwngus
2021. 2. 2. 21:44
Desc :
char *asctime( const struct tm *timeptr );
Source Code :
#include <stdio.h>
#include <time.h>
void main()
{
time_t now;
struct tm t;
now = time(NULL);
t = *localtime(&now);
printf("현재 날짜 및 시간: %s\n", asctime(&t));
}
Result :