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

int main(void)
{
	time_t t;
	struct tm tmx;
	char B[1024];

	setlocale(LC_ALL, "");

	time(&t);
	localtime_r(&t, &tmx);

	strftime(B, sizeof(B), "%c", &tmx);
	printf("%s\n", B);

	return 0;
}
