Time h C Tutorial

Item Value
Header filetime.h
Declarationchar *ctime(const time_t *time);
Returnreturns a time in string, whose form is
day month year hours:minutes:seconds year\n\0

#include 
  #include 
  int main(void)
  {
    time_t lt;
    lt = time(NULL);
    printf(ctime(<));
    return 0;
  }
Sat Mar 3 16:12:45 2007