Here is one way - also look up struct tm in help or edit time.h to see what struct tm.
Code:
#include <time.h>
.............
/* code block */
time_t lt;
struct tm t, *tmptr;
lt=time(NULL);
tmptr=localtime( & lt );
printf("%s\n",asctime(tmptr));
Most compilers keep a static string that asctime or ctime populates, and the contents of the string changes with each new call to asctime- you need to make your own copy of the string.
Note: to get the characters to display I added extra spaces around the ampersand and lt in localtime()