Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ time
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 4-Jul-12 21:15pm
smss IR399
Comments
Sergey Alexandrovich Kryukov at 5-Jul-12 2:19am
   
What's the problem? Why a timer, not thread?
--SA
Member 8238193 at 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 at 5-Jul-12 3:05am
   
Are you planning to build a scheduler?
Member 8238193 at 5-Jul-12 16:19pm
   
Yeah, i wanna to build a program to computing the expiring date with the issued time.
ryanb31 at 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.
Member 8238193 at 5-Jul-12 16:22pm
   
No no no, my problem this is: I don't know how can i get the system time, and the time, and how to open a window for messaging with the user.
Thanks.
jkirkerx at 6-Jul-12 16:58pm
   
So the system time is not the current time?
Member 8238193 at 7-Jul-12 0:07am
   
No, system time is current.
jkirkerx at 7-Jul-12 0:25am
   
Just messing with you.
 
working with time is not that hard. But you need to write some code to start out with, and then ask questions.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Can't speak for Linux, but on Windows you can look into
_gmtime_s
and
time
and
difftime
Look in MSDN under the topic "Time Management".
  Permalink  
Comments
Member 8238193 at 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)

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 334
2 CPallini 275
3 DamithSL 230
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 24 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100