Quote Originally Posted by jpn View Post
Is that a GUI application? You don't want to sleep() in a GUI application because that would freeze the whole application by blocking the applications event loop. You can use QTimer to perform periodic tasks.
i forgot to say that i am rather new to gui designs...yes it is for gui application.In theory at least i am thinking of a button that when pressed the whole application would stop until the dates are outputed to a file or label....but the problem isn't there.

The problem is that i dont know what type to use to represent date and time so that i can have the ability to add minutes to an original time....