C Tutorial/time.h/ctime
ctime
Item Value Header file time.h Declaration char *ctime(const time_t *time); Return returns a time in string, whose form is
day month year hours:minutes:seconds year\n\0
#include <time.h>
#include <stdio.h>
int main(void)
{
time_t lt;
lt = time(NULL);
printf(ctime(<));
return 0;
}