C Program to Display the current Date and Time
C Program to Display the current Date and Time #include<stdio.h> #include<time.h> int main() { printf(“\n\n\t\t C Program to display date time\n\n\n”); time_t t; // not a primitive datatype time(&t); printf(“\nThis program has been writeen at (date and time): %s”, ctime(&t)); return 0; }