I have to make an application which runs from 21:00 till 06:00 in the morning. Apart from this period the application should sleep.
I get the CurrentTime = Time()
I get the StartTime = 21:00 and the EndTime = 06:00 from the registry.
My problem is that how do I compare the CurrentTime with the StartTime and the EndTime, so that the application does not work and goes to sleep. I do have a sleep function, so thats not a problem. I have a problem doing the time manipulation.
Any help will be highly appreciated.