Good day...
I'm wondering if anyone can help me with my problem:
I'm doing a shift maintenance program in PHP:
Given:
1.) Time in
2.) Time out
Rule: Working hours must not me less or more than 9 hrs.
Situation:
1.) whenever I try to add a shift within hours in a day (example 00:00:
00 to 23:00:00) its ok.
Example:
a.) 09:00:00 and 18:00:00 - since the difference is 9 hours, the program will execute correctly.
b.) 14:00:00 - 23:00:00 - since the difference is 9 hours, the program will execute correctly.
PROBLEM:
1.) When I tried adding 23:00:00 to 08:00:00 (11PM to 8AM shift), I cannot add this shift because the time difference is 15 Hours. But what I want to intend is its correct time difference which is 9 hours....
Can anyone please help me with this problem?
I'm really having trouble with this....
Thank you in advance!
Grace