Code Snippets C

//Declaration: char *asctime(const struct tm *ptr);
#include
#include
int main(void)
{
struct tm *ptr;
time_t lt;
lt = time(NULL);
ptr = localtime(<);
printf(asctime(ptr));
return 0;
}
/*
Wed Jun 3 15:12:44 2012
*/