This article has been dead for over three months
You
#include <stdio.h>
#include <time.h>
char *get_time1()
{
time_t current;
time(¤t);
tm *local = localtime(¤t);
return(asctime(local));
}
char *get_time2()
{
time_t current;
time(¤t);
return(ctime(¤t));
}
int main()
{
printf("%s%s", get_time1(), get_time2());
getchar();
return(0);
}