Tech Support Guy banner

Solved: GetSystemTime() - Visual C++

28380 Views 8 Replies 3 Participants Last post by  mobarati
i've been looking around on the net for days now, trying to find out how the GetSystemTime() function works in visual c++.

all i want to do is to have the date and time on my console screen at all times. someone told me i should be using the time intrrupt, but i have no idea how to do that either.

can anyone give me the code on how to read the date and time, from the system and then show it on the screen so it automatically gets updated by the second.

thanks
Status
Not open for further replies.
1 - 1 of 9 Posts
Hi mobarati,

You may be interested by this article : Date and Time in C++.

Also :
Code:
[SIZE=2]SYSTEMTIME SystemTime;
GetSystemTime(&SystemTime);[/SIZE]
1 - 1 of 9 Posts
Status
Not open for further replies.
Top