I am working on something where I need the user to input values in to the Terminal Window such as:
Start Time: 0800
End Time: 1200
Then I need to check if this person's start and end time fall within a range. So if the working hours are 0900 - 1700 and it is now 11:45 the above user would be shown as available, whereas if it was 1201 the above user would be unavailable.
Currently I just pull the times in as a string:
void setWorkHours(String hrs)
{
this.hours=hrs;
}
public String getWorkHours()
{
return hours;
}
Any help much appreciated.
Cheers