Click here to Skip to main content
15,880,796 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to create a timer from system date to a specified date and reverse counter of time to the notify a message on a new window?( on linux & windows )
Thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 5-Jul-12 2:19am    
What's the problem? Why a timer, not thread?
--SA
smss IR 5-Jul-12 2:24am    
problem this is i don't know how can i get the system date, and the system time, and how to the specifying a second. and of course, how to create a window for messaging.
Mohibur Rashid 5-Jul-12 3:05am    
Are you planning to build a scheduler?
smss IR 5-Jul-12 16:19pm    
Yeah, i wanna to build a program to computing the expiring date with the issued time.
ZurdoDev 5-Jul-12 11:19am    
It sounds like you do not know how to program at all? If so, you'll need to get a book first. There is too much to learn that we can't give you every step here.

1 solution

Can't speak for Linux, but on Windows you can look into
C++
_gmtime_s
and
C++
time
and
C++
difftime
Look in MSDN under the topic "Time Management".
 
Share this answer
 
Comments
smss IR 24-Jul-12 15:19pm    
Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900