Ctime Function
Syntax:
char *ctime(const time_t *time);
Example:
#include <time.h> #include <stdio.h> int main() { time_t l; l = time(NULL); printf(ctime(&l)); return 0; }Back
char *ctime(const time_t *time);
#include <time.h> #include <stdio.h> int main() { time_t l; l = time(NULL); printf(ctime(&l)); return 0; }Back