Thanks Nawaid for code. It works.

On Thu, Sep 29, 2011 at 4:33 PM, <[email protected]> wrote:

>   Today's Topic Summary
>
> Group: http://groups.google.com/group/google-code/topics
>
>    - how to find system time using a c 
> program<#132b4dab7d2717c0_group_thread_0>[2 Updates]
>
>   Topic: how to find system time using a c 
> program<http://groups.google.com/group/google-code/t/b8432360e0b2071f>
>
>    Avijit Singh <[email protected]> Sep 28 04:01AM -0700 
> ^<#132b4dab7d2717c0_digest_top>
>
>    ah!!!i want to compute the sytem time...............will some1 help me
>    for
>    tht.............which system calls shd i use for this.....
>
>
>
>
>    Nawaid Shamim <[email protected]> Sep 28 12:12PM +0100 
> ^<#132b4dab7d2717c0_digest_top>
>
>    #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 <
>
>
>
>  --
> 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.
>



-- 
Vaibhav Jain
B-Tech. 7th Sem.
Computer Science and Engineering
Mo. - +91-9958721511
[email protected]

-- 
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.

Reply via email to