SubhanUllah Posted October 26, 2022 Report Posted October 26, 2022 #include <stdio.h> #include <time.h> int main(){ time_t ct; // current time struct tm *lt; // local time ct = time(NULL); lt = localtime(&ct); printf("%s\n", asctime(lt)); } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.