#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;
}
I hope that helps
Cheers
Nawaid Shamim <http://nawaidshamim.com>
On Wed, Sep 28, 2011 at 12:01 PM, Avijit Singh <
[email protected]> wrote:
> ah!!!i want to compute the sytem time...............will some1 help me for
> tht.............which system calls shd i use for this.....
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-code?hl=en.