/*using the ctime function*/ #include #include int main() { time_t tm; tm = time(NULL); printf(ctime(&tm)); return 0; }