Here is one way - also look up struct tm in help or edit time.h to see what struct tm.
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.
/* code block */
struct tm t, *tmptr;
tmptr=localtime( & lt );
Note: to get the characters to display I added extra spaces around the ampersand and lt in localtime()