User input int value that translate to hours...
Sorry for being unclear, I will do my best to explain my thoughts. I am building an app that takes user input (as ints), and let him define a work shift, something that goes like:
please tell me when do you begin work?
(the user writes) 7
when do you finish?
(again user) 12
Now, I need some way to diffreniate between 12AM and 00PM, making sure the user will input the right values. Something that will only accept values that correspond to day/night hours. Otherwise if the user enters 7 as a starting hour and 2 as the ending hour, well... you know where this is going :)
Can someone please give me an hint on which way to go about this?