System Time in C
This is a small example for C Programming to show how to get system time
C program that help us to get system time.
#include <stdio.h>
#include <time.h>
int main ()
{
char *date;
time_t timer;
timer=time(NULL);
date = asctime(localtime(&timer));
printf("Current Date: %s", date);
getchar();
return 0;
}
No comments:
Post a Comment
Your feedback may help others !!!