Unable to create a simple function
Hi Friends,
This is my first message on this forum. I am trying to learn C language. Recently i was trying to find a solution for a
problem..... To be more specific I was trying to make C-Function for a proble, lets say If a user inputs 2 different times of a day & a band period, we want to find whether Action_Start_Time lies in range of Present_Time+band_Period, let me explain with the help of an example. lets say he enters:-
1.)Present_Time :- 00:30
2.)Action_Start_Time :- 00:29
3.)band_Period :- 90 minutes
we need to know whether Action_Start_Time(00:29) lies anywhere between 00:30(Present_Time) -- to -- 02:00 (Present_Time
+band_Period)
Now, in this example the answer should be "No".
Now lets take one more example, lets say he enters:-
1.)Present_Time :- 23:30
2.)Action_Start_Time :- 00:05
3.)band_Period :- 90 minutes
now here we need to know whether Action_Start_Time(00:05) lies anywhere between 23:30(Present_Time) -- to -- 01:00 (Present_Time +band_Period)
Now, in this example the answer should be "Yes".
I hope I'm clear enough. Thanks a lot for giving me your time. :-). I have to work in 24 hours mode. Not with 12am/pm mode.
With Best Regards,
garg