My site has been moved!

You should be automatically redirected in 6 seconds. If not, visit
http://www.hackagenius.co.cc
and update your bookmarks.




C Program to Get the Current System Time

Posted by smit sanghvi Monday, November 2, 2009


This program reads the current system time and displays it in the form HH:MM:SS
#include
#include

int main(void)
{
struct time t;
gettime(&t);
printf(”The current time is: %2d:%02d:%02d\n”, t.ti_hour, t.ti_min, t.ti_sec); return 0;
}

0 comments

Post a Comment

Visit our new website

Our Newsletter

Enter your email address To Subscribe Us Via Email:

Our SMS Updates