Desc :

char *ctime( const time_t *timer );

현재 날짜 및 시간에 대한 timer의 값을 문자열로 출력

문자열 끝에 자동 개행 문자 추가함

 


Source Code :

#include <stdio.h>
#include <time.h>

void main()
{
	time_t now;

	time(&now);

	printf("현재 날짜 및 시간: %s", ctime(&now));
}

 


Result :

+ Recent posts